Staredit Network > Forums > Modding Assistance > Topic: IceCC Question
IceCC Question
Nov 16 2008, 10:25 pm
By: Hercanic  

Nov 16 2008, 10:25 pm Hercanic Post #1

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

I'm teaching myself IceCC at the moment, so this should be a fairly basic question. In IceCC there are four columns from which scripts can be extracted. Is each entry completely separate, or are there duplicates for the sake of organizing? As in, the Scourge:

Images:
0 Scourge

Sprites:
130 Scourge

Flingy:
0 Scourge

Units:
47 ZergScourge




Nov 16 2008, 10:28 pm Symmetry Post #2

Dungeon Master

They're the same.



:voy: :jaff: :voy: :jaff:

Nov 17 2008, 12:10 am poiuy_qwert Post #3

PyMS and ProTRG developer

You are actually choosing IScript entries when you choose an item from any of the columns. All units are attached to flingys, all flingys are attached to sprites, all sprites are attached to images, and all images are attached to iscript entrys.




Nov 17 2008, 2:08 am Angle Lock Post #4



best way to answer this question is to test it out....

extract the scripts for scourage from all 4 columns and compare them..



None.

Nov 17 2008, 10:45 pm Fisty Post #5



Quote from Angle Lock
best way to answer this question is to test it out....

extract the scripts for scourage from all 4 columns and compare them..
I'm getting vibes of irony from this post.

And :><: I never knew that.



None.

Nov 19 2008, 9:37 pm Hercanic Post #6

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

Question about Locals. Can you create your own, as many as you want, or are they replacement-only where available?




Nov 19 2008, 9:41 pm Fisty Post #7



Quote from Hercanic
Question about Locals. Can you create your own, as many as you want, or are they replacement-only where available?
As many as you want...since a "Local" can only be reached by another script referring to it. For organization's sake, I usually name it something more relative to what it does, since "Local" is merely what Blizz decided to name those states.



None.

Nov 19 2008, 10:04 pm poiuy_qwert Post #8

PyMS and ProTRG developer

Blizzard didn't name them, none of the parts of the iscript.bin are named, only decompiled source code gives parts names. IceCC gives them names so you can describe them and reference them, but the only thing it "knows" are which parts are referenced by headers. So the ones that are "Local" are referenced by the IScript, but not by a header. And just a small note, just because they are called Local doesn't mean they are ONLY referenced locally.




Nov 20 2008, 7:39 am Hercanic Post #9

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

Right, IceCC's decompiled text file is a translation of the Iscript. In ICE, everything had a header number. So how does IceCC handle the compiling of custom-named locals? If you can have as many as you want, how are they organized and referenced in the Iscript after compiling?




Nov 20 2008, 7:42 am poiuy_qwert Post #10

PyMS and ProTRG developer

Everything is referenced by offsets.




Nov 20 2008, 9:23 pm Hercanic Post #11

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

So IceCC assigns offsets to your locals automatically, and indexes them in a way so as not to repeat any?

What if you re-extract your code? Will it preserve the custom names for your locals? Or will it be renamed to something like MarineLocal01?




Nov 20 2008, 9:38 pm poiuy_qwert Post #12

PyMS and ProTRG developer

The code is compiled to byte code, then the goto commands referenced parts of the code by the offset of where the code is in the file. Im not sure how IceCC handles it exactly, but I don't believe it goes out of its way to check for repeated code in other scripts, but if in your script you goto a Local twice, when compiled both goto's reference the same byte code with the same offset.

It does not remember names, so yes it would become a Local, or if its referenced by a header it will use the header name.




Nov 21 2008, 7:16 am Hercanic Post #13

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

So if you write code for, say, the Firebat, that refers to a custom-named Local you made with the Marine, but have compiled them at two different times, it won't work? Since the first compiling of the Marine will not preserve the custom local name, when you compile the Firebat code, which refers to that custom name, IceCC has no way to associate those two to the same offset?




Nov 21 2008, 7:52 am poiuy_qwert Post #14

PyMS and ProTRG developer

Yes thats correct.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
Please log in to shout.


Members Online: Zycorax