Hey guys, I've been having some trouble trying to make my own version of Warfare. Here's what my idea is: Warfare BE type game, except have each side start on their own aircraft carrier at opposite ends of the map. I want to have each MHQ along with all player slots start out on their respective aircraft carrier. So the the teams will have to lift their MHQs to land, then start capturing towns like normal Warfare. I don't know a whole lot of scripting, although I've been learning and can do basic things. So I figured I would just use one of the WarfareBE missions as a template and just edit that. Well I've been successful in getting most things the way I want them with the exception of the starting locations.
Now, I tried just moving StartingLocation0 to one carrier, and StartingLocation1 to the other carrier, and put the following in the Init box of the game logic starting locations:
this setPosition [locationPosition this select 0, locationPosition this select 1, 18];
However, when I save the mission, export to MP as PBO, and host local game to test the mission, it gets stuck at the black screen with "Loading..." and doesn't let me play (although I can hear game sounds in the background).
I also tried putting the following code in the Init box of each MHQ and player:
this setPosASL [getPosASL this select 0, getPosASL this select 1, 18]
But this doesn't seem to do the trick either.
When I move the StartingLocations 0 and 1 to somewhere on land, then start the game, it loads fine and it starts me at the place where I put the StartingLocation. So I'm guessing there is some problem with putting the starting locations over water?
So if anyone can lend me any assistance here I would appreciate it. I'd be perfectly happy if I could just remove all StartingLocations and just have the players and MHQs always start where I place them on the map in the editor, that way I could definitely place them on the carrier. But alas, I tried removing all the game logic starting locations and placing the units where I wanted them, but it didn't seem to work (same problem as before, hangs at Loading...).
I also tried simply changing one line in the Init_Client.sqf that is setting the player position. This is what I had:
/* Positionate the client at the previously defined location */
player setPosASL [getPos carrier_north select 0, getPos carrier_north select 1, 18];
Since carrier_north is what I named the carrier, and I know the deck height is 18, I thought this would HAVE to work. But no, I still get stuck at the black "Loading..." screen forever once I start the game. The commander vote box doesn't even pop up. I also tried this same line of code except with setPos instead of setPosASL, but...same problem. If i change this line back to normal, the game starts fine but it's not the starting location that I wanted.
Can someone please explain to me why changing this one, simple line of script in Client\Init\Init_Client.sqf causes the game to get stuck at the "Loading..." screen when I start the game? I am really pulling my hair out over this guys, everything I'm trying is giving me the same problem :-(
(incase anyone wants to know, I'm using the USS Nimitz addon for my carriers, and i used WarfareV2_068LiteCO.isladuala as my template for this mission)
I've also posted at
http://forums.bistudio.com/showthread.php?t=120362 this same question. To see everything I've tried, check out that thread.