Staredit Network > Forums > Modding Discussion > Topic: STF Plugin Source
STF Plugin Source
Sep 11 2011, 10:22 pm
By: poiuy_qwert  

Sep 11 2011, 10:22 pm poiuy_qwert Post #1

PyMS and ProTRG developer

Hercanic (creator of STF) has given me permission to release the source of the STF Plugin. He originally asked me to document how to print text to screen, but has graciously let me release the full source. I hope to augment the code with some actual "tutorial" bits and maybe more in-depth descriptions of parts, but don't hold your breath.

Also note, this is old code so its not the best, and im not saying any part of it is the best way to do things, but it gets the job done and I hope it can help others. I've gone over it and heavily commented it, but If you have any questions, ask away (oh, and while i was commenting i fixed up some code to be better/easier to understand, but don't have any way to check I didn't break anything).

Attachments:
STFPlugin.zip
Hits: 20 Size: 26.16kb




Sep 13 2011, 12:58 pm Taeradun Post #2



Cool, I've had a look through it and it's very complex but have already found some parts that might be useful for what I'm working on. Thanks poiuy_qwert and Hercanic! :D

I had already been planning on releasing the source for my own plugin once it's done :)



None.

Sep 13 2011, 1:07 pm Voyager7456 Post #3

Responsible for my own happiness? I can't even be responsible for my own breakfast

Awesome, I'll have to take a look at it later!



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Sep 14 2011, 3:29 am A_of-s_t Post #4

aka idmontie

I'll have to look at it in my spare time.



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:32 pm]
O)FaRTy1billion[MM] -- iirc the last byte in the TRIG is for more flags or something
[09:15 pm]
Wormer -- also, when I wear cartoon it turns off the dynamic lighting and doesn't turn it on when I switch back, maybe that kind of incompatibilities were the problem
[09:02 pm]
Suicidal Insanity -- Wormer
Wormer shouted: Pr0nogo THAT why it's impossible to switch that skin on the fly
My guess is GPU memory constraints
[09:02 pm]
Suicidal Insanity -- I think its 27 and padding
[09:01 pm]
Wormer -- Wormer
Wormer shouted: or the guide (http://www.starcraftai.com/wiki/CHK_Format#.22UNIT.22_-_Placed_Units) is wrong there and it should be u8[27] ?
the right link http://www.starcraftai.com/wiki/CHK_Format#.22TRIG.22_-_Triggers
[09:01 pm]
Wormer -- or the guide (http://www.starcraftai.com/wiki/CHK_Format#.22UNIT.22_-_Placed_Units) is wrong there and it should be u8[27] ?
[08:59 pm]
Wormer -- anybody knows why chk format has a list of 27 player group IDs (http://www.starcraftai.com/wiki/CHK_Format#List_of_Players.2FGroup_IDs), but TRIG section uses an array of 28 elements => suppose the last byte is padding as well?
[08:57 pm]
Wormer -- but it's actually possible to switch between cartoon and classic skin which is cool
[08:52 pm]
Wormer -- Pr0nogo
Pr0nogo shouted: they coded a new system in for it
THAT why it's impossible to switch that skin on the fly
[08:51 pm]
Pr0nogo -- i don't remember if it was because the old system was limited to only 2, or they didn't know how to increase it, or what
Please log in to shout.


Members Online: Roy, Pandut, DarkenedFantasies