Outpost Universe Forums

Projects & Development => Outpost 2 Programming & Development => Topic started by: Angellus Mortis on July 31, 2009, 03:13:09 AM

Title: Disappearing Vf? Wtf? Please Help
Post by: Angellus Mortis on July 31, 2009, 03:13:09 AM
Okay, this kind if AI related. The map_id for the Vehicle Factory (mapVehicleFactory) is doing something very wrong. If I have a trigger for the AI to build on, the ConVec builds nothing; just the bulldozed land and tube appear. If use the CreateUnit function at the start to give the AI a Vehicle Factory, it does the same thing: just bulldozed land and tubes, NO VF!!!! I am using the survtech if that has anything to do with it. Does anyone know why?
Title: Disappearing Vf? Wtf? Please Help
Post by: Hidiot on July 31, 2009, 05:00:27 AM
Can we get some sample code?
Title: Disappearing Vf? Wtf? Please Help
Post by: Angellus Mortis on July 31, 2009, 05:04:30 AM
Quote
Can we get some sample code?
I just used the simple TethysGame::CreateUnit function:
 
TethysGame::CreateUnit(scriptGlobal.VechicleF1, (mapVehicleFactory), LOCATION(14-1, 33-1), 1, mapNone, 0);

That on my game generated the non existent VF.

Go here to download the mission to see it for yourself:

Colony Games (http://forum.outpost2.net/index.php?act=ST&f=39&t=4607&st=0#entry68346)

The code has also been posted on SVN.
Title: Disappearing Vf? Wtf? Please Help
Post by: Hidiot on July 31, 2009, 05:23:35 AM
Don't put the mapVechicleFactory in parenthesis.
Title: Disappearing Vf? Wtf? Please Help
Post by: Angellus Mortis on July 31, 2009, 05:41:48 AM
It was not that. It was an interference with my AIProc(). I fixed it now. Thanks anyway.
Title: Disappearing Vf? Wtf? Please Help
Post by: Hidiot on July 31, 2009, 06:15:39 AM
Well, with the amount of code you've shown, I couldn't have located the actual problem.

You're welcome anyway.