Hunt/conquest(literally mixed together) not recognizing cps
Moderator: Moderators
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Hunt/conquest(literally mixed together) not recognizing cps
this may sound like a completely crazy thing to do, but in order to get hunt mode into one of my maps, i copied the lua contents for naboo hunt into my clone wars conquest lua. i changed the ReadDataFile thingy to recognize my map, too. it was like editing a shipped map, but without the actual shipped map-just the lua. but when i played the map, everything worked perfectly, there was no crash or problems, except...there were no cps
i renamed the cps to be like the ones in the shipped naboo hunt map(Team1CP is the name) but they still werent recognized. i know this was a completely insane idea but if anyone has any advice or knowledge about making the cps recgonizable please tell me. thank you 
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: hunt/conquest(literally mixed together) not recognizing cps
Hunt mode isn't made to handle capturing CPs, simply put. Did you want a hybrid mode? That would require blending the objective scripts, I believe, using the capturable CP objects, and you'd have to add the CP stuff to your mission's lua. Don't quote me on that, but that's the only way I can think of doing so at the moment.
- 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: hunt/conquest(literally mixed together) not recognizing cps
Can you post your lua? To setup hunt mode requires much more lua work than just changing the ReadDataFile.
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: hunt/conquest(literally mixed together) not recognizing cps
i made a few changes to see if it would help recognize the cps. my changes didnt cause any crashes, but the cps still wont show. hopefully you can find the changes i made. i mainly just replaced the hunt scriptpostload with the conquest one. there was one other change but i cant find it. if you can compare the naboo hunt lua with my lua u may find it. here it is:
Hidden/Spoiler:
- 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: hunt/conquest(literally mixed together) not recognizing cps
Your lua is set up a bit odd but for a quick glance at it the only thing I can see wrong is the dc:, I don't think it's necessary for ScriptPostLoads. What are you trying to accomplish? Capturable cps in hunt? All you have to do is add capture regions to the cps and setup hunt mode in the lua, if that's what your trying to do.
- [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: hunt/conquest(literally mixed together) not recognizing cps
Yes, you need to say what you are trying to make. Do you want your map to have a normal Hunt mode? Do you want your map to have a Hunt mode where the CPs can be captured?jedimaster745 wrote:this may sound like a completely crazy thing to do, but in order to get hunt mode into one of my maps, i copied the lua contents for naboo hunt into my clone wars conquest lua...
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: hunt/conquest(literally mixed together) not recognizing cps
i want the command posts to show up so i may spawn my gungans/droids. when i play the map, neither command post even shows up, which i need fixed if possible. when i put in the command post part of the lua instead of the hunt thingy, all it did was get rid of the hunt timer.
- 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: hunt/conquest(literally mixed together) not recognizing cps
Can you show your bfront2.log, it looks like you have something that you did wrong setting up everything as the conquest/hunt modes do absolutely nothing to cps.
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: hunt/conquest(literally mixed together) not recognizing cps
id love to. could you please tell me where its located? im not too good with finding files.bobfinkl wrote:Can you show your bfront2.log, it looks like you have something that you did wrong setting up everything as the conquest/hunt modes do absolutely nothing to cps.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: hunt/conquest(literally mixed together) not recognizing cps
If all you want to do is make a Hunt mode with capturable cps, wouldn't it be relatively easy to just add the gungans as units in CW Conquest?
Make a new side, and put the gungans in as its only units. Then, in your LUA, make the REP team setup only include the Gungans. In the CIS part, delete every unit except the rifleman (rifledroid?). Then munge everything, and vóila, you get a Hunt mode posing as a conquest.
Not sure how to change the name to "Hunt", though......could you possibly use the edit localize tool?
Make a new side, and put the gungans in as its only units. Then, in your LUA, make the REP team setup only include the Gungans. In the CIS part, delete every unit except the rifleman (rifledroid?). Then munge everything, and vóila, you get a Hunt mode posing as a conquest.
Not sure how to change the name to "Hunt", though......could you possibly use the edit localize tool?
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: hunt/conquest(literally mixed together) not recognizing cps
On the missing CP issue, try checking your layers in ZE and verifying the CPs are present in the layer you're loading via the mission's lua. From what your posts describe now, this is more than likely where the problem lay, unless the map didn't munge properly.
As for the stuff I said earlier, you don't need all of that for a normal hunt mode, just for the sake of clarity. It reads like you want hunt mode to work the same as the stock version. That said, the stock hunt mode uses uncapturable CPs which need not be referenced in the lua. The CP-related lua coding (in the mission lua) only affects whether CPs count toward the conquest timer (as I recall..), and can't force an object to show up that may or may not be there.
Also, I don't believe ScriptCB_DoFile accepts the dc: tag. I can't explain it clearly, but there's never a need to use it there that I can think of.
Come to think of it: when you first tried adding hunt mode, did you add this mode to the addme script? You shouldn't need to set it up under the preexisting conquest mode.
As for the stuff I said earlier, you don't need all of that for a normal hunt mode, just for the sake of clarity. It reads like you want hunt mode to work the same as the stock version. That said, the stock hunt mode uses uncapturable CPs which need not be referenced in the lua. The CP-related lua coding (in the mission lua) only affects whether CPs count toward the conquest timer (as I recall..), and can't force an object to show up that may or may not be there.
Also, I don't believe ScriptCB_DoFile accepts the dc: tag. I can't explain it clearly, but there's never a need to use it there that I can think of.
Come to think of it: when you first tried adding hunt mode, did you add this mode to the addme script? You shouldn't need to set it up under the preexisting conquest mode.
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: hunt/conquest(literally mixed together) not recognizing cps
i didnt put it in the addme script, because ive never had a successful created hunt mode before(most likely my fault or my computers fault for not being very....good with these things), but instead put the lua in conquest. i figured i could make a hunquest, or conhunt, or something, by putting hte hunt lua into the conquest one, then once it works, take out the timer(maybe) and add capturable command posts. i might try the new layer idea and see if that works.MercuryNoodles wrote:Come to think of it: when you first tried adding hunt mode, did you add this mode to the addme script? You shouldn't need to set it up under the preexisting conquest mode.
- [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: hunt/conquest(literally mixed together) not recognizing cps
So you just want Hunt mode with capturable CPs correct? Do you want the AI to go after the CPs like in Conquest or just go after other units like in Hunt (and they may capture CPs as a side effect)? Do you want the map to end when the reinforcement counts goes to zero (like Conquest) or when a team reaches a certain point limit (like Hunt) or just when a timer ends?
You need to answer these questions before I know the best way for you to setup your map script.
You need to answer these questions before I know the best way for you to setup your map script.
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: hunt/conquest(literally mixed together) not recognizing cps
sorry to all that were hoping to help me, but ive resolved my lua problem, and my gungans may now spawn like they were supposed to. thank you everyone for the help, and if an admin wants to lock this topic or something, they may do so if they please. i wont mind. 
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: hunt/conquest(literally mixed together) not recognizing cps
Before it's locked, could you post your solution? It'd be useful for any future reference, might be added to the FAQ thread.
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: hunt/conquest(literally mixed together) not recognizing cps
well, i would hate to take too much credit for this, mostly because it involves tactics already in the FAQ thread. but anyways, this will sound pretty crazy, just like my original ideas for this concept. so, were all familiar with the "how to edit a shipped map" thread in the FAQ, right? ok, so first, we must follow those guidelines. we work our way through the steps until the point where we switch our original lua with the one from the shipped map. lets say were making hunquest like i was. and for further information's sake, lets just say were using the naboo shipped map. so, when we switch the luas, instead of putting the conquest lua in, put the one for hunt. it will still work, trust me. then follow all the other steps for editing shipped maps. finally when our masterpiece is finished and zeroeditor is running and all, we do the dirty work. so, when we open the naboo world file, we get, of course, the shipped naboo map. if were feeling especially lazy we can just delete a few things, and build up from there(lets say were making some crazy naboo metropolis never before seen in the movies but it looks relatively like the original naboo). another technique, which is far more dangerous, in my opinion, is to delete everything and start from scratch. by everything, however, i mean everything that is irrelavant to hunt, like the CTF layer, or the CONQUEST layer. if you want to delete your base layer thats fine with me, but do NOT delete the hunt layer, if we do then the whole project is ruined(unless we have far better layering skills than i ever will). so, we have a blank map. no objects, no terrain, no unneeded modes. all we have is our hunt layer, our base layer, and any other layer(such as lighting or something) that we might have wanted to keep. and congrats, weve just basically made a brand new map that we usually get after we munge, except we have....CUSTOM SIDES. well, not exactly custom, but close enough. be warned, however, that if you munge without any other lua changes, the hunt settings will be in control of how our map works(such as timer, points, etc). after a few lua tweaks, we may have a more developed hunquest. at this point, lets let the modder decide those sorts. a few other tweaks and we may have stumbled upon real custom sides.
im not sure if this is FAQ material, but its as much of an explanation as i can give. i will not, however, take full credit for this, as i was mainly building from the work of others(that sounded way too ugly but im just being modest)
have fun with your hunquest map! if i forgot anything, ill edit this post later.
im not sure if this is FAQ material, but its as much of an explanation as i can give. i will not, however, take full credit for this, as i was mainly building from the work of others(that sounded way too ugly but im just being modest)
have fun with your hunquest map! if i forgot anything, ill edit this post later.
- [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: hunt/conquest(literally mixed together) not recognizing cps
Its not. The game modes were designed to be mixed together. Thats how the Campaign maps work. Depending on what exactly you were trying to do (that was never clear, at least to me), you only needed to add a Conquest objective to a Hunt map script or add a Hunt objective to a Conquest map script.jedimaster745 wrote:im not sure if this is FAQ material...
ScriptCB_DoFile does not use dc: because dc: helps tell the game which folder the file being read is in. ScriptCB_DoFile is loading Lua scripts already read into memory (you read them in with the ReadDataFile lines).
