Staredit Network

Staredit Network -> Modding Assistance -> really big IceCC problem
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 13:39:39
helpsmilie.gif It won't open my text files. helpsmilie.gif Neither the GUI or command line compiler can open my text files, so it can't compile them. The GUI just doesn't do anything. The command line gives me an error saying it couldn't open C:\~\iscript.txt ranting.gif
What should I do? confused.gif
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-09-09 at 13:49:59
What are you trying to do, exactly? Your problem makes no sense. Why are you trying to open a txt file with IceCC?
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 13:59:30
I'm trying to compile it to a .bin file. But when I try, the command line compiler says it cannot open the text file.
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-09 at 14:36:49
Check EVERYTHING that you've modified. Make sure that all of your commands are spelled correctly, all of your headers are correct, and that nothing that shouldn't be there is there. Sometimes ICECCUI will simply refuse to compile instead of returning an error message, so just look through your most recent changes.
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 14:43:33
The only thing I changed since the last compiled version was I put a wait command instead of an attcack. And TerranFighter told me to change the goto to IonCannonInit or IonCannonUnknown19. So it went from this
CODE

IonCannonGndAttkInit:
wait             1
goto  IonCannonGndAttckInit


to

CODE

IonCannonGndAttkInit:
attack26
goto  IonCannonUnknown19

Is everything here right?
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-09 at 14:51:12
A) You might want a "wait" in there anyway to be safe.

B) Does IonCannonUnknown19 exist?
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 15:02:47
A) I added wait 1 between attack26 and goto
B)Yes it exits. should i change the goto to go to IonCannonInit ?

It still doesn't compile with the wait command.
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-09-09 at 15:38:51
Wait, you say you are using the command line? I'd use IceCCUI. More user-friendly.
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 15:41:11
I tried that first, but it won't even give me an error message. At least the command line will tell me that something is wrong. But I do like the GUI a lot better.
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-09-09 at 15:43:09
Would you mind posting step by step everything you did when you used the GUI? It'll make it easier for us to tell you what you're doing wrong, or if there's anything wrong at all, for that matter.
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 16:21:26
OK.
1. I decompiled the .bin,
2. Edited it in notepad.
3. In compiler tab I clicked add
4. Double clicked it text file
5. Chose the output directory
6. Selected the text file in the source files window
7. Clicked compile.
8.Nothing happens, no error messages and no .bin files in output directory.

I have done this in the past, and it worked.

When i use the command line and type everthing in correclty and hit enter, it says
error: icecc could not open C:\~\iscript.txt
(the ~ is there cuase im too lasy to type out the huge directory its in)
and i closed notepad so its not in use by anther program
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-09-09 at 16:22:43
When you selected where to save it, did you make sure to specify to save it as iscript.bin?
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 16:40:03
yes
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-09 at 16:59:24
Show us the whole Ion Cannon script. Is the Ion Cannon the only change you made in that edit?
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 17:04:39
I also changed the warp gate, but I got that one to compile before.
Anyway here is the entire script.
CODE

# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data/scripts/iscript.bin'
# created on: Mon Sep 04 19:08:58 2006
# ----------------------------------------------------------------------------- #

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 292 IonCannon (neutral\ion.grp)
.headerstart
IsId            116
Type            20
Init            IonCannonInit
Death           IonCannonDeath
GndAttkInit     IonCannonGndAttkInit
AirAttkInit     IonCannonGndAttkInit
SpAbility1      [NONE]
GndAttkRpt      IonCannonGndAttkInit
AirAttkRpt      IonCannonGndAttkInit
SpAbility2      [NONE]
GndAttkToIdle   IonCannonInit
AirAttkToIdle   IonCannonInit
SpAbility3      [NONE]
Walking         [NONE]
Other           [NONE]
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking       IonCannonIsWorking
Landing         IonCannonInit
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       IonCannonGndAttkInit
Unknown20       IonCannonUnknown19
Unknown21       [NONE]
.headerend
# ----------------------------------------------------------------------------- #

IonCannonInit:
playfram        0
goto            IonCannonUnknown19

IonCannonUnknown19:
wait            125
goto            IonCannonUnknown19

IonCannonDeath:
playsnd         7 # Misc\ExploLrg.wav
imgol           334 0 0 # TerranBuildingExplosionlarge (thingy\tBangX.grp)
wait            3
liftoffcondjmp  local00
sprul11         273 0 0 # TerranBuildingRubblesmall (thingy\RubbleS.grp)
wait            1
end            

local00:
wait            1
end            

IonCannonGndAttkInit:
attack26
wait  1
goto  IonCannonUnknown19

IonCannonIsWorking:
playfram 1
goto  IonCannonInit

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 934 WarpGate (protoss\XwarpGat.grp)
.headerstart
IsId            406
Type            20
Init            WarpGateInit
Death           WarpGateDeath
GndAttkInit     [NONE]
AirAttkInit     [NONE]
SpAbility1      [NONE]
GndAttkRpt      [NONE]
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle   [NONE]
AirAttkToIdle   [NONE]
SpAbility3      [NONE]
Walking         [NONE]
Other           [NONE]
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking       WarpGateIsWorking
Landing         WarpGateLanding
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       WarpGateLanding
Unknown20       WarpGateLanding
Unknown21       WarpGateUnknown21
Unknown24 WarpGateLanding
Unknown27 WarpGateLanding
.headerend
# ----------------------------------------------------------------------------- #

WarpGateInit:
imgul           935 0 0 # WarpGateShad (protoss\pwgShad.grp)
playfram        0
goto            local00

local00:
wait            125
goto            local00

WarpGateDeath:
playsnd         7 # Misc\ExploLrg.wav
imgol           215 0 0 # ProtossBuildingExplosionLarge (thingy\tBangX.grp)
wait            3
sprul11         224 0 0 # ProtossBuildingRubbleLarge (thingy\PRubbleL.grp)
wait            1
end            

WarpGateIsWorking:
playfram        0
goto            WarpGateLanding

WarpGateLanding:
imgol           936 0 0 # WarpGateOverlay (protoss\XwarpFir.grp)
goto            local00

WarpGateUnknown19:
playfram        0
goto            WarpGateUnknown19

WarpGateUnknown21:
imgol           172 0 0 # GatewayWarpFlash (protoss\gateway.grp)
goto            WarpGateLanding
Report, edit, etc...Posted by Doodle77(MM) on 2006-09-09 at 17:11:30
Where is the text file located on you hard drive?
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-09 at 17:14:54
It's the Warp Gate.

A) Make "Type" for the Warp Gate at least 26 but not more than 29, since you're using Unknown24 and Unknown27. I also wouldn't recommend messing with those--no one's sure what they do. If you really must use them...

B) Since you're using Unknown27, everything before it MUST be given a value, even if it's [NONE]. Change the end part of the header to:

CODE
Unknown21  WarpGateUnknown21
Unknown22  [NONE]
Unknown23  [NONE]
Unknown24  WarpGateLanding
Burrow        [NONE]
UnBurrow    [NONE]
Unknown27  WarpGateLanding


Still, I'd recommend taking everything after Unknown21 out, but if you want to use it, go ahead.
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 17:29:58
Still no. Plus I have a compiled version of the warp gate and it works fine.

ADDITION:
I just decompiled the default iscript for IceCC and tried re compiling it without any changes and it told me it had syntax errors. Here is the exact error
C:\Documents and Settings\Owner\Desktop\iscript2.txt:18586: error: too many arguments (2) to instruction 'setpos', should be 1
WTF is wrong with my IceCC ranting.gif
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-09-09 at 18:57:52
I have a few questions:
Mind telling us if you're using the original IceCC, or if it's a modified one?
What Editor did you use to edit the text files in?
Are other programs able to access files in the same directory? (folder)
Have you recently made any changes to your computer, or tried to fix it up any? (example: defragmenting hard drive)
Did you extract a new Iscript from the patch_rt MPQ to use in IceCC, or is it the original one it's decompiling?
Is your computer having other random problems??? tongue.gif

Edit: I doubt this is it, but I just noticed Unknown20 is linked to Unknown19, which is linked to GndAttkInit...
Maybe you're confusing the compiler with too many re-directions? tongue.gif

Edit2: It seems you placed a opcode that doesn't exist in the iscript, try removing the
'liftoffcondjmp local00'

Edit3: Although this most likely isn't the cause, I did notice the WarpGateUnknown19 has a script even though it doesn't exist... (you have it linked to another header)
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 19:12:18
IceCC fix
notepad
yes
no
no
no

Edit 1. I highly doubt if im not confused by the jumps that the compiler is.
Edit 2. IceCC decompiled it that way, i didn't write that line. but ill try removing it
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-09-09 at 19:15:07
You used IceCC fix?
I've never been able to get that to work, I kept getting annoying errors when running it... (I sugguest IceCC instead)
Report, edit, etc...Posted by coolpotatoes on 2006-09-09 at 19:27:45
Lol. That is just like like upgrades. They are supposed to make things better, but instead they just cause more trouble. tongue.gif I'll try regular IceCC. and hope it works.
Report, edit, etc...Posted by WoAHorde2 on 2006-09-09 at 19:33:09
Normal IceCC is the best of all Ice editors.
Report, edit, etc...Posted by Ojan on 2006-09-10 at 08:40:14
Is IceCC located in C:\IceCC ? You'll end up having troubles if it's not...

Again, are you sure that no other program is accessing the .txt-file, such as anti-virus scanners etc?
Report, edit, etc...Posted by coolpotatoes on 2006-09-10 at 22:36:32
Yes, its in corrects directory.
I hadn't thought about anit-virus stuff. I'll look into that, but i don't think so since it worked a few days ago.

ADDITION:
MAJOR BREAKTHROUGH i hope
Using regular IceCC command line i got it to read the text file but there are a lot of errors most of which not my fault. Here is the error list i got and the code-


C:\IceCC\modiscript.txt:34: warning: header is missing 'Unknown22' animation; as
suming [NONE]
C:\IceCC\modiscript.txt:34: warning: header is missing 'Unknown23' animation; as
suming [NONE]
C:\IceCC\modiscript.txt:34: warning: header is missing 'Unknown24' animation; as
suming [NONE]
C:\IceCC\modiscript.txt:34: warning: header is missing 'Burrow' animation; assum
ing [NONE]
C:\IceCC\modiscript.txt:34: warning: header is missing 'UnBurrow' animation; ass
uming [NONE]
C:\IceCC\modiscript.txt:34: warning: header is missing 'Unknown27' animation; as
suming [NONE]
C:\IceCC\modiscript.txt:47: error: unknown instruction opcode 'imgol'
C:\IceCC\modiscript.txt:49: error: unknown instruction opcode 'liftoffcondjmp'
C:\IceCC\modiscript.txt:96: warning: header Type 20 does not have 'Unknown23' an
imation; discarding
C:\IceCC\modiscript.txt:97: warning: header Type 20 does not have 'Unknown24' an
imation; discarding
C:\IceCC\modiscript.txt:98: warning: header Type 20 does not have 'Burrow' anima
tion; discarding
icecc: error: aborted due to syntax errors in C:\IceCC\modiscript.txt

CODE

# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data/scripts/iscript.bin'
# created on: Mon Sep 04 19:08:58 2006
# ----------------------------------------------------------------------------- #

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 292 IonCannon (neutral\ion.grp)
.headerstart
IsId            116
Type            27
Init            IonCannonInit
Death           IonCannonDeath
GndAttkInit     IonCannonGndAttkInit
AirAttkInit     IonCannonGndAttkInit
SpAbility1      [NONE]
GndAttkRpt      IonCannonGndAttkInit
AirAttkRpt      IonCannonGndAttkInit
SpAbility2      [NONE]
GndAttkToIdle   IonCannonInit
AirAttkToIdle   IonCannonInit
SpAbility3      [NONE]
Walking         [NONE]
Other           [NONE]
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking       IonCannonIsWorking
Landing         IonCannonInit
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       IonCannonGndAttkInit
Unknown20       IonCannonUnknown19
Unknown21       [NONE]
.headerend
# ----------------------------------------------------------------------------- #

IonCannonInit:
playfram        0
goto            IonCannonUnknown19

IonCannonUnknown19:
wait            125
goto            IonCannonUnknown19

IonCannonDeath:
playsnd         7 # Misc\ExploLrg.wav
imgol           334 0 0 # TerranBuildingExplosionlarge (thingy\tBangX.grp)
wait            3
liftoffcondjmp  local00
sprul11         273 0 0 # TerranBuildingRubblesmall (thingy\RubbleS.grp)
wait            1
end            

local00:
wait            1
end            

IonCannonGndAttkInit:
wait  1
goto  IonCannonGndAttkInit

IonCannonIsWorking:
playfram 1
goto  IonCannonInit


# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 934 WarpGate (protoss\XwarpGat.grp)
.headerstart
IsId            406
Type            20
Init            WarpGateInit
Death           WarpGateDeath
GndAttkInit     [NONE]
AirAttkInit     [NONE]
SpAbility1      [NONE]
GndAttkRpt      [NONE]
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle   [NONE]
AirAttkToIdle   [NONE]
SpAbility3      [NONE]
Walking         [NONE]
Other           [NONE]
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking       WarpGateIsWorking
Landing         WarpGateLanding
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       WarpGateLanding
Unknown20       WarpGateLanding
Unknown21       WarpGateUnknown21
Unknown22 [NONE]
Unknown23 [NONE]
Unknown24 WarpGateLanding
Burrow  [NONE]
UnBurrow [NONE]
Unknown27 WarpGateLanding
.headerend
# ----------------------------------------------------------------------------- #

WarpGateInit:
imgul           935 0 0 # WarpGateShad (protoss\pwgShad.grp)
playfram        0
goto            local00

local00:
wait            125
goto            local00

WarpGateDeath:
playsnd         7 # Misc\ExploLrg.wav
imgol           215 0 0 # ProtossBuildingExplosionLarge (thingy\tBangX.grp)
wait            3
sprul11         224 0 0 # ProtossBuildingRubbleLarge (thingy\PRubbleL.grp)
wait            1
end            

WarpGateIsWorking:
playfram        0
goto            WarpGateLanding

WarpGateLanding:
imgol           936 0 0 # WarpGateOverlay (protoss\XwarpFir.grp)
goto            local00

WarpGateUnknown19:
playfram        0
goto            WarpGateUnknown19

WarpGateUnknown21:
imgol           172 0 0 # GatewayWarpFlash (protoss\gateway.grp)
goto            WarpGateLanding

Can someone please help because i think some of those are valid commands helpsmilie.gif
Next Page (1)