Author Topic: Disappearing Vf? Wtf? Please Help  (Read 1734 times)

Offline Angellus Mortis

  • Full Member
  • ***
  • Posts: 138
Disappearing Vf? Wtf? Please Help
« 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?

Offline Hidiot

  • Hero Member
  • *****
  • Posts: 1018
Disappearing Vf? Wtf? Please Help
« Reply #1 on: July 31, 2009, 05:00:27 AM »
Can we get some sample code?
"Nothing from nowhere, I'm no one at all"

Offline Angellus Mortis

  • Full Member
  • ***
  • Posts: 138
Disappearing Vf? Wtf? Please Help
« Reply #2 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

The code has also been posted on SVN.
« Last Edit: July 31, 2009, 05:11:09 AM by angellus »

Offline Hidiot

  • Hero Member
  • *****
  • Posts: 1018
Disappearing Vf? Wtf? Please Help
« Reply #3 on: July 31, 2009, 05:23:35 AM »
Don't put the mapVechicleFactory in parenthesis.
"Nothing from nowhere, I'm no one at all"

Offline Angellus Mortis

  • Full Member
  • ***
  • Posts: 138
Disappearing Vf? Wtf? Please Help
« Reply #4 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.

Offline Hidiot

  • Hero Member
  • *****
  • Posts: 1018
Disappearing Vf? Wtf? Please Help
« Reply #5 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.
« Last Edit: July 31, 2009, 06:15:55 AM by Hidiot »
"Nothing from nowhere, I'm no one at all"