Hey all, glad to see some people working on fresh levels and game styles! Also reassuring to note this is the least active room in the forum, means my mod won't have so much competition!!
My problem is that while the in-game level editor etc is all groovy, I can't get my scripting to work. If I may I'll paste my code in here and I'm sure the first viewer will pick up on the obvious mistake I'm making.
Game.txt:
Locations_StartDefinition
# Id Avail mapFile missionFile
# ==================================================================
0 1 map_newlevel.txt mission_newlevel.txt
Locations_EndDefinition
Buildings_StartDefinition
# Id teamId locId type link online
# =======================================
Buildings_EndDefinition
Research_StartDefinition
Research Darwinian 0 2
Research Officer 0 2
Research Squad 0 2
Research Laser 0 2
Research Grenade 0 2
Research Rocket 0 2
Research Controller 0 2
Research AirStrike 0 2
Research Armour 0 2
Research TaskManager 0 2
Research Engineer 0 2
CurrentResearch Squad
CurrentPoints 0
Research_EndDefinition
Events_StartDefinition
Event BuildingOnline:map_newlevel.txt,5
Action RunScript CamScript.txt
End
Events_EndDefinition
So that's basically calling my camscript when the building comes online...
CamScript.txt:
CamMove pos2 5
CamReset
and that should move the camera a bit. I'm guessing the problem isn't in the camscript, since it's simpler, but I'll be damned if I know what's wrong. If there were more mods about I could try and test the problem in them, but for lack of that or any kind of debugger, I'm stuck.
Also, if it's impossible to employ the text script for yourself, would it not be possible to simply edit an existing campaign text script and use that?
Small Scripting issue (Icepick you need your own forum!!!)
Moderators: jelco, bert_the_turtle
- Stormchild
- level2

- Posts: 131
- Joined: Thu Mar 06, 2003 12:03 am
- Location: 127.0.0.1
- Contact:
- Stormchild
- level2

- Posts: 131
- Joined: Thu Mar 06, 2003 12:03 am
- Location: 127.0.0.1
- Contact:
Thats correct, scripts use the name of the map itself, not the map filename. So basically, everything stormchild just said
http://thenextgame.co.uk/modguide/index.php?p_id=14
http://thenextgame.co.uk/modguide/index.php?p_id=14
Still no luck!! This is so bleeding annoying without some kinda debugger or compiler to show where the script stops running. Thanks for all your help guys!
Is there some clever way I can test whether the problem is in Game.txt or the CamScript? Some other script command? Is it possible I've just got some silly option turned on/off or not reloaded the mod or something daft?
Is there some clever way I can test whether the problem is in Game.txt or the CamScript? Some other script command? Is it possible I've just got some silly option turned on/off or not reloaded the mod or something daft?
Cheers
Game.txt
Locations_StartDefinition
# Id Avail mapFile missionFile
# ==================================================================
0 1 map_newlevel.txt mission_newlevel.txt
Locations_EndDefinition
Buildings_StartDefinition
# Id teamId locId type link online
# =======================================
Buildings_EndDefinition
Research_StartDefinition
Research Darwinian 0 2
Research Officer 0 2
Research Squad 0 2
Research Laser 0 2
Research Grenade 0 2
Research Rocket 0 2
Research Controller 0 2
Research AirStrike 0 2
Research Armour 0 2
Research TaskManager 0 2
Research Engineer 0 2
CurrentResearch Squad
CurrentPoints 0
Research_EndDefinition
Events_StartDefinition
Event BuildingOnline :newlevel,5
Action RunScript CamScript.txt
End
Events_EndDefinition
CamScript:
CamMove pos2 5
WaitCam 3
Game.txt
Locations_StartDefinition
# Id Avail mapFile missionFile
# ==================================================================
0 1 map_newlevel.txt mission_newlevel.txt
Locations_EndDefinition
Buildings_StartDefinition
# Id teamId locId type link online
# =======================================
Buildings_EndDefinition
Research_StartDefinition
Research Darwinian 0 2
Research Officer 0 2
Research Squad 0 2
Research Laser 0 2
Research Grenade 0 2
Research Rocket 0 2
Research Controller 0 2
Research AirStrike 0 2
Research Armour 0 2
Research TaskManager 0 2
Research Engineer 0 2
CurrentResearch Squad
CurrentPoints 0
Research_EndDefinition
Events_StartDefinition
Event BuildingOnline :newlevel,5
Action RunScript CamScript.txt
End
Events_EndDefinition
CamScript:
CamMove pos2 5
WaitCam 3
- Stormchild
- level2

- Posts: 131
- Joined: Thu Mar 06, 2003 12:03 am
- Location: 127.0.0.1
- Contact:
Who is online
Users browsing this forum: No registered users and 3 guests



