
Angle doens match VO / Personell spawning at wrong FS
#21
Geschrieben 22 Juni 2010 - 04:08
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#22
Geschrieben 22 Juni 2010 - 06:44
I replaced one of the USFS trucks with a HES struck now.
Everything runs fine, exept for the returning to firestation.
when you click the button, it says: this vehicle doesnt belong at the firestation.
I have the script on PasteBin.
I really cant figure out why it does this, so help would be nice.
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#23
Geschrieben 23 Juni 2010 - 02:08
You have:
GameObjectList l5; Game::CollectObstaclesOnVirtualObject(VO_HES, l, ACTOR_VEHICLE); if(l4.GetNumObjects() > 0) { Mission::PlayHint(HINT_NOSPACE); v.PushActionReturnToBase(ACTION_NEWLIST); return; } else { ActorList l1 = Game::GetActors(VO_HES); ActorList l2 = Game::GetActors(VO_EXTRA_BOTH); } }Try this:
After VO_HES you just had an l not l5. You put GameObjectList l5 on the first line and all the Ls after this need to be l5, well all the ones for the HES. I think that will solve it.GameObjectList l5;
Game::CollectObstaclesOnVirtualObject(VO_HES, l5, ACTOR_VEHICLE);
if(l5.GetNumObjects() > 0)
{
Mission::PlayHint(HINT_NOSPACE);
v.PushActionReturnToBase(ACTION_NEWLIST);
return;
} else
{
ActorList l1 = Game::GetActors(VO_HES);
ActorList l2 = Game::GetActors(VO_EXTRA_BOTH);
}
}

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#24
Geschrieben 23 Juni 2010 - 07:42


Btw does it matter which number follows the L??
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#25
Geschrieben 23 Juni 2010 - 09:02
Now in the other 2 fire station scripts, I believe each OBJ needs to have a different L#. I find it best to do each units in the order it appears, so if you has a HES after the USAR in LA Fire Station Start, and the USAR is l6, I would make the HES l7 and update any units after that to a new l#, but again, the ALS Engines,BLS Engines and ALS Ambos are where it gets tricky.
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#26
Geschrieben 23 Juni 2010 - 09:07
but now i've changed the numbers all to l4, but it still doens't work

maybe a different error??
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#27
Geschrieben 24 Juni 2010 - 03:58
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#28
Geschrieben 24 Juni 2010 - 02:59
now i fixed that, but it still doesnt work

I'll ad my scripts again with all the edits.
PasteBin
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#29
Geschrieben 24 Juni 2010 - 04:38
ActorList l1 = Game::GetActors(VO_HES); ActorList l2 = Game::GetActors(VO_EXTRA_BOTH);
Try:
ActorList l1 = Game::GetActorsVO_EXTRA_BOTH(); ActorList l2 = Game::GetActors(VO_HES);
The first part of the script you want the turnto vo listed first. In the second part of the script, you want the turn to second.
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#30
Geschrieben 24 Juni 2010 - 04:42
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#31
Geschrieben 24 Juni 2010 - 06:52
else if(StrCompare(v.GetPrototypeFileName(), OBJ_BRUSH) == 0) { GameObjectList l4; Game::CollectObstaclesOnVirtualObject(VO_BRUSH, l4, ACTOR_VEHICLE); if(l4.GetNumObjects() > 0) { Mission::PlayHint(HINT_NOSPACE); v.PushActionReturnToBase(ACTION_NEWLIST); return; } else { ActorList l1 = Game::GetActors(VO_BRUSH2); ActorList l2 = Game::GetActors(VO_BRUSH); } }But in the object DummyCheckParked : CommandScript section you want it like this:
else if(StrCompare(v.GetPrototypeFileName(), OBJ_BRUSH) == 0) { GameObjectList l3; Game::CollectObstaclesOnVirtualObject(VO_BRUSH, l3, ACTOR_VEHICLE); if(l3.GetNumObjects() > 0) { Mission::PlayHint(HINT_NOSPACE); v.PushActionReturnToBase(ACTION_NEWLIST); return; } else { ParkinglotFound = true; ActorList l1 = Game::GetActors(VO_BRUSH); ActorList l2 = Game::GetActors(VO_BRUSH2); } }
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#32
Geschrieben 24 Juni 2010 - 09:45
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#33
Geschrieben 25 Juni 2010 - 01:58
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?no door found for animation with door-type 3
?(_LAToFireStationa620): Warning: else if(StrCompare(v.GetPrototypeFileName(),OBJ_AMBULANCE02)==0||StrCompare(v.GetPrototypeFileName(),OBJ_AMBULANCE03)==0||StrCompare(v.GetPrototypeFileName(),OBJ_AMBULANCE04)==0) Missing ';'
?(_LAToFireStationa620): FILE:mod:/scripts/game/command/LAToFireStation.scripta620 LINE:414
--- load time profile begin ---
--- load time profile end ---
Destroy Network...
Deleting units...
Destroy XGUI...
Destroy Audio...
Destroy GameFramework...
Destroy GFX...
Destroy Vision...
|VisMain_cl::DeInit
|DeInitializing Object Data...
|DeInitializing World Data...
|DeInitializing Surface and Texture Data...
|Dump resources...
|...no resource leaks.
|Deallocated fast Geometry Buffer.
Destroy Input...
Destroy Scriptscheduler...
Destroy Timer...
Destroy Screen...
Destroy UpdateChain...
Destroy Console...
Destroy Filesystem...
if you check line 414, there it says:
first line is 413
else if(StrCompare(v.GetPrototypeFileName(), OBJ_AMBULANCE02) == 0 || StrCompare(v.GetPrototypeFileName(), OBJ_AMBULANCE03) == 0 || StrCompare(v.GetPrototypeFileName(), OBJ_AMBULANCE04) == 0) { bool Possible = false; GameObjectList l4; Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l4, ACTOR_VEHICLE); if(l4.GetNumObjects() == 0 && !Possible) Possible = true;
does anyone understand this??
entire script here.
-edit-
hmm, sudenly not a single vehicle belongs to the firestation anymore

I have absolutely no idea how this is possible
Dieser Beitrag wurde von Lithium bearbeitet: 29 Juni 2010 - 07:59
converted to code
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#34
Geschrieben 25 Juni 2010 - 04:28

if(StrCompare(v.GetPrototypeFileName(),OBJ_AMBULANCE02)==0||StrCompare(v.GetPrototypeFileName(),OBJ_AMBULANCE03)==0||StrCompare(v.GetPrototypeFileName(),OBJ_AMBULANCE04)==0) Missing ';'
Your missing a ; at the end of the line

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#35
Geschrieben 27 Juni 2010 - 01:37
there doesnt belong a ; after the end of such a line because it is followed by a {.
i've tried allmost anything to fix it, but i'm affraid i'll have to use my backup and restart all over....
-edit-
btw do you have a special program to test your code before you run it ingame or something???
i think its pretty inconvenient that you have to run the game, the mod and then freeplay too test if your code works...
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#36
Geschrieben 27 Juni 2010 - 09:11
you would think so yes, but it isn't
there doesnt belong a ; after the end of such a line because it is followed by a {.
i've tried allmost anything to fix it, but i'm affraid i'll have to use my backup and restart all over....
-edit-
btw do you have a special program to test your code before you run it ingame or something???
i think its pretty inconvenient that you have to run the game, the mod and then freeplay too test if your code works...
No, you may have an extra one somewhere where it's not needed. Check your files, brackets and all that jazz using Notepad2.
http://www.flos-free...h/notepad2.html
#37
Geschrieben 27 Juni 2010 - 09:36
you would think so yes, but it isn't
there doesnt belong a ; after the end of such a line because it is followed by a {.
i've tried allmost anything to fix it, but i'm affraid i'll have to use my backup and restart all over....
-edit-
btw do you have a special program to test your code before you run it ingame or something???
i think its pretty inconvenient that you have to run the game, the mod and then freeplay too test if your code works...
Oh good point, try using the code tags next time, might make the code ab it easier to read.

As for testing, i wish. Its a tedious problem as you usually need to go in to the game, test, and if you have an error, you can fix the script while the mods running, but for the game to realize you changed something as as small as a ; you have to exit the game and reload the mod. You may be able to get away with just reloading the mod from the main menu but sadly I usually see problems when trying to do it this way.
Oh and Moo is right. Grab notepad2. It wont test it for you but can help you spot errors.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#38
Geschrieben 28 Juni 2010 - 07:39
I'll keep checking the codes and keep you updated.
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with:
#39
Geschrieben 28 Juni 2010 - 11:48
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#40
Geschrieben 29 Juni 2010 - 06:27
[LA Mod] A Police Station that functions like a Fire Station, check it out!
Some scripting I could use some help with: