here are the relavant error messages
Campaign scripting partial fail
Moderator: Moderators
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Campaign scripting partial fail
Thank you everyone at GT for helping me figure out how to campaign script, so far I only have 1 objective but at least it works.... sort of.... I'm preatty sure my coding is spot on, what i'm having a problem with is that for some reason my localizations are not showing up. I get a [null] popup for all of the text that I had entered into the localization tool, and it also appears that the game is not recognising my rally point region and can't find the arrow pointer thingy for the hud.
here are the relavant error messages
and here is the mission chunk of my lua just in case I messed that up too
Sorry for being such a nub, its my first attempt at a campaign.
here are the relavant error messages
Hidden/Spoiler:
Hidden/Spoiler:
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Campaign scripting partial fail
Perhaps you could toss in an AcitvateRegion prior to trying to stick a marker to it?
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Campaign scripting partial fail
I don't think that's the problem, i've looked at some examples of vanilla missions and they don't use that function before setting a goto objective. Also it doesn't help with getting my localizations working. IDK ill try it and report back in a bit.
edit1: I've looked through my lua and found this line right below the SetMemoryPool lines, what does it do and do I need to change it?
ReadDataFile("dc:LPR\\LPR.lvl", "LPR_conquest")
edit1: I've looked through my lua and found this line right below the SetMemoryPool lines, what does it do and do I need to change it?
ReadDataFile("dc:LPR\\LPR.lvl", "LPR_conquest")
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Campaign scripting partial fail
LPR_conquest corresponds to the game mode configured in ZE. The line is saying to load all level/layer data included in LPR_conquest. This is the line that actually loads your physical map.wishihadaname wrote:...ReadDataFile("dc:LPR\\LPR.lvl", "LPR_conquest")
You never give MapAddEntityMarker an object to put the marker on. Its first parameter is supposed to be the object you want it point at. Instead, you gave it hud_objective_icon_circle. Also, MapRemoveEntityMarker's parameter is supposed to be the object you're removing the marker from too.
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Campaign scripting partial fail
ohh.......... so if my region is located in the campaign layer then I need to add a line to tell the script to read the campaign layer of ZE too right?
- bobfinkl
- Rebel Colonel

- Posts: 593
- Joined: Sun Jul 13, 2008 9:01 am
- Projects :: Lots of unreleased stuff
- xbox live or psn: No gamertag set
- Location: The quaint little city gametoast.
Re: Campaign scripting partial fail
No, you can't load more than one layer like that at a time, you have to use either the campaign layer or conquest layer (I highly suggest the campaign layer).wishihadaname wrote:add a line to tell the script to read the campaign layer of ZE too right?
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Campaign scripting partial fail
Ok, thank you, I've got one last problem though. It seems that my localization tool has now been saving the localizations I made. Whats the differance between scopes and keys? I think I may have used them backwards. Because I added LPR as a scope under level and the added my messages and popups as keys under LPR. But when I save, exit out of the localizer and then open it again, everything except LPR is gone.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Campaign scripting partial fail
Gee shucks, that is funny, I am going to have to tell a couple of my working scripts that they need to stop working, because they shouldn't be.bobfinkl wrote:No, you can't load more than one layer like that at a time, you have to use either the campaign layer or conquest layer (I highly suggest the campaign layer).wishihadaname wrote:add a line to tell the script to read the campaign layer of ZE too right?
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Campaign scripting partial fail
Don't you always load at least two (base and one mode) anyway (unless you set it up not to)?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Campaign scripting partial fail
No, one normally includes the base layer into the ZE configured game mode.
You can load multiple game modes. It's quite interesting to load an enclosed map into a space or land map. You can easily do that with the FakeConsole's code input command.
You can load multiple game modes. It's quite interesting to load an enclosed map into a space or land map. You can easily do that with the FakeConsole's code input command.
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Campaign scripting partial fail
Ok well I made a bit of a mistake when I placed objects. I played EVERYTHING into the conquest layer. Is there some way to make it so that campaign uses both the camapaign layer and the conquest layer? I intended the conquest to be a much smaller map then the campaign so I don't really want to just have the same layer for both game modes.
- KnightsFan
- Second Lance Corporal

- Posts: 108
- Joined: Fri Mar 06, 2009 9:34 pm
Re: Campaign scripting partial fail
I believe you can just add more layers into the ReadDataFile piece, using the same syntax as with units. I can't seem to find where I saw this, though, so it may not work...
So change
ReadDataFile("ABC\\ABC.lvl", "ABC_conquest")
to
ReadDataFile("ABC\\ABC.lvl", "ABC_conquest", "ABC_campaign")
or whatever your world/layers are named.
So change
ReadDataFile("ABC\\ABC.lvl", "ABC_conquest")
to
ReadDataFile("ABC\\ABC.lvl", "ABC_conquest", "ABC_campaign")
or whatever your world/layers are named.
- bobfinkl
- Rebel Colonel

- Posts: 593
- Joined: Sun Jul 13, 2008 9:01 am
- Projects :: Lots of unreleased stuff
- xbox live or psn: No gamertag set
- Location: The quaint little city gametoast.
Re: Campaign scripting partial fail
That gave me a good laugh, but a bit more on-topic, must be another one of the random unfixable bugs I've been getting recently.Maveritchell wrote:Gee shucks, that is funny, I am going to have to tell a couple of my working scripts that they need to stop working, because they shouldn't be.
