complied respawn script

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
fuzzman





Posts: 67
Joined: Sun Jul 30, 2006 1:52 pm
Location: the sunshine state

Post by fuzzman »

but it has to be the script..

it basically says when all AI are dead then to respawn.. but as soon as he makes the AI count 0 the map freezes. i would say it has to do with a bad script inject or the AI Squads relexive.


yea i think you might be on to something, and i will try the tutorial Lod3x provided

edit: okay i decomplied a clean turf.map, and now i opened its scnr in H2 guerilla and i tried adding a new script and injecting a perfect low gravity script and gives some stupid error about "no database entry found" and sumthin about it cant find the argument that matches physics_set_gravity. wtf?
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Post by Shadowz_O_Death »

fuzzman wrote:
but it has to be the script..

it basically says when all AI are dead then to respawn.. but as soon as he makes the AI count 0 the map freezes. i would say it has to do with a bad script inject or the AI Squads relexive.


yea i think you might be on to something, and i will try the tutorial Lod3x provided

edit: okay i decomplied a clean turf.map, and now i opened its scnr in H2 guerilla and i tried adding a new script and injecting a perfect low gravity script and gives some stupid error about "no database entry found" and sumthin about it cant find the argument that matches physics_set_gravity. wtf?
Is the "Script Data" reflexive in your map? To check if it is, read the following tutorial.

1. Open Entity.
2. Open Turf.
3. Navigate to the SCNR (Scenario) tag in each map.
4. Click on the dependency.
5. Right-click the reference editor then click "Clone Chunk."
6. If there is a reflexive labeled "Script Data" (offset 432), then you have it in your map. If you don't see it, then you don't have it in your map.
7. Close Entity.

If you don't have it in your map, read the following tutorial.
1. Open Entity.
2. Open Ascension and Turf.
3. Click "Windows" then "Tile Horizontally."
4. Navigate to the SCNR (Scenario) tag in each map.
5. Click on the dependency in each map.
6. In Ascension, right-click the reference editor then click "Clone Chunk."
7. Click "Script Data" (offset 432) then click "Copy To Clip Board."
8. Close Chunk Cloner.
9. In Turf, right-click the reference editor then click "Clone Chunk."
10. Click on the chunk.
11. Click "Add To Selected Reflex/Chunk."
12. Click "Add Meta To Map."
13. Close Entity.

Good luck!

Regards,
Shadowz_O_Death
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

fuzzman wrote:
but it has to be the script..

it basically says when all AI are dead then to respawn.. but as soon as he makes the AI count 0 the map freezes. i would say it has to do with a bad script inject or the AI Squads relexive.


yea i think you might be on to something, and i will try the tutorial Lod3x provided

edit: okay i decomplied a clean turf.map, and now i opened its scnr in H2 guerilla and i tried adding a new script and injecting a perfect low gravity script and gives some stupid error about "no database entry found" and sumthin about it cant find the argument that matches physics_set_gravity. wtf?
Just to clarify: you should just decompile your MODDED MP map, not a clean map if you're using the tut I just provided. It will error but just press continue.

I also have a self found solution to your database problem:

Add for example a respawn script. This one shouldn't give any database problems. Once you got this done close H2Guerilla and rebuild your map. Once that is done complete the steps I listed in my tut.

Now you'll need script tools. Open your map using script tools and edit the script to your liking there! Press compile and it shouldn't give any problems.

Good luck!
fuzzman





Posts: 67
Joined: Sun Jul 30, 2006 1:52 pm
Location: the sunshine state

Post by fuzzman »

thanks alot guys! ill try it out right away

edit: ok i have the script database in my map but it doesnt make a differnece. H2G gives me an error on every script i try to inject. i tried the respawn script like lod3x said but it always makes sumthin up like cant find the argument for sleep. its really stupid and its pissing me off lol
Post Reply