Disappearing Vf? Wtf? Please Help

Started by Angellus Mortis, July 31, 2009, 03:13:09 AM

Angellus Mortis

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?

Hidiot

"Nothing from nowhere, I'm no one at all"

Angellus Mortis

#2
QuoteCan 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

The code has also been posted on SVN.

Hidiot

Don't put the mapVechicleFactory in parenthesis.
"Nothing from nowhere, I'm no one at all"

Angellus Mortis

It was not that. It was an interference with my AIProc(). I fixed it now. Thanks anyway.

Hidiot

#5
Well, with the amount of code you've shown, I couldn't have located the actual problem.

You're welcome anyway.
"Nothing from nowhere, I'm no one at all"