Jump to content

Maffegozer

Members
  • Posts

    315
  • Joined

  • Last visited

Everything posted by Maffegozer

  1. Ok, will wait for that. Thought it was fixed as I downloaded the latest with 'NO CTDs'..
  2. Hello, (Didn't know what the 'Vrijwillige Brandweer', dutch, or 'Freiwillige Feuerwehr', german, was called in English.) I've made a script for a mod which should drive 3 cars that I've placed on the map, to 3 virtual objects. After that they should get out of their cars. But I get stuck at the part where they need to get out. I've tested the script when I added the PushActionMove, and it worked. But now I've added the LeaveCar action and then I get an script error. The script: // 112 Veluwe Hoog Soeren // Script by: Niels // Alarmering Vrijwillige Post const char MOVECARONE[] = "movecar1"; const char MOVECARTWO[] = "movecar2"; const char MOVECARTHREE[] = "movecar3"; const char MOVEPERS[] = "movepers"; const char PROTO_ONE[] = "mod:/Prototypes/Persons/Civil/civilman02_blue.e4p"; const char PROTO_TWO[] = "mod:/Prototypes/Persons/Civil/civilman03_red.e4p"; const char PROTO_THREE[] = "mod:/Prototypes/Persons/Civil/civilman06.e4p"; const char alarmicon[] = "icon graag"; const char sound[] = "mod:/ path sound"; object vwbrwpost : CommandScript { vwbrwpost() { SetIcon(alarmicon); SetCursor(alarmicon); SetValidTargets(ACTOR_FLOOR); } bool CheckPossible(GameObject *Caller) { if (Caller->HasCommand("vwbrwn")) return false; return true; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Mission::PlayHint("Alarmering voor de vrijwillige brandweer Hoog Soeren."); Audio::PlaySample(sound); Person p1; Person p2; Person p3; Person p4; Person p5; Person p6; GameObject *go; GameObject *go2; GameObject *go3; GameObjectList gol; GameObjectList gol2; GameObjectList gol3; ActorList l1; ActorList l2; ActorList l3; p1 = Game::CreatePerson(PROTO_ONE, "VHSP"); p2 = Game::CreatePerson(PROTO_TWO, "VHSP"); p3 = Game::CreatePerson(PROTO_THREE, "VHSP"); p4 = Game::CreatePerson(PROTO_ONE, "VHSP"); p5 = Game::CreatePerson(PROTO_TWO, "VHSP"); p6 = Game::CreatePerson(PROTO_THREE, "VHSP"); l1 = Game::GetActors(MOVECARONE); Actor plekp = *l1.GetActor(0); l2 = Game::GetActors(MOVECARTWO); Actor plekp2 = *l2.GetActor(0); l3 = Game::GetActors(MOVECARTHREE); Actor plekp3 = *l3.GetActor(0); Vector plek = plekp.GetPosition(); Vector plek2 = plekp2.GetPosition(); Vector plek3 = plekp3.GetPosition(); gol = Game::GetGameObjects("VHSA1"); go = *gol.GetObject(0); Vehicle v(go); v.SetSpeed(15.0f); v.SetMaxPassengers(1); v.SetMaxTransports(0); v.AddPassenger(&p1); v.PushActionWait(ACTION_NEWLIST, 9.0f); v.PushActionMove(ACTION_APPEND, plek); v.PushActionExecuteCommand(ACTION_APPEND, "ReadyYourself", &p1, 0, false); gol2 = Game::GetGameObjects("VHSA2"); go2 = *gol2.GetObject(0); Vehicle v2(go2); v2.SetSpeed(15.0f); v2.SetMaxPassengers(1); v2.SetMaxTransports(0); v2.AddPassenger(&p2); v2.PushActionWait(ACTION_NEWLIST, 7.0f); v2.PushActionMove(ACTION_APPEND, plek2); v2.PushActionExecuteCommand(ACTION_APPEND, "ReadyYourself", &p2, 1, false); gol3 = Game::GetGameObjects("VHSA3"); go3 = *gol3.GetObject(0); Vehicle v3(go3); v3.SetSpeed(15.0f); v3.SetMaxPassengers(1); v3.SetMaxTransports(0); v3.AddPassenger(&p3); v3.PushActionWait(ACTION_NEWLIST, 5.0f); v3.PushActionMove(ACTION_APPEND, plek3); v3.PushActionExecuteCommand(ACTION_APPEND, "ReadyYourself", &p3, 2, false); } }; object ReadyYourself : CommandScript { ReadyYourself() { SetIcon(alarmicon); SetCursor(alarmicon); } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { GameObject *go; GameObject *go2; GameObject *go3; GameObjectList gol; GameObjectList gol2; GameObjectList gol3; PersonList PL; Vector EPos; if (childID == 0) { // Car One Mission::PlayHint("Child 0"); gol = Game::GetGameObjects("VHSA1"); go = *gol.GetObject(0); Vehicle v(go); PL = v.GetPassengers(); EPos = v.GetPosition(); Game::FindFreePosition(PL.GetPerson(0),EPos); PL.GetPerson(0)->PushActionLeaveCar(ACTION_NEWLIST, &p1); } if (childID == 1) { // Car Two Mission::PlayHint("Child 1"); gol2 = Game::GetGameObjects("VHSA2"); go2 = *gol2.GetObject(0); Vehicle v2(go2); PL = v2.GetPassengers(); EPos = v2.GetPosition(); Game::FindFreePosition(PL.GetPerson(0),EPos); PL.GetPerson(0)->PushActionLeaveCar(ACTION_NEWLIST, &p2); } if (childID == 2) { // Car Three Mission::PlayHint("Child 2"); gol3 = Game::GetGameObjects("VHSA3"); go3 = *gol3.GetObject(0); Vehicle v3(go3); PL = v3.GetPassengers(); EPos = v3.GetPosition(); Game::FindFreePosition(PL.GetPerson(0),EPos); PL.GetPerson(0)->PushActionLeaveCar(ACTION_NEWLIST, &p3); } } }; It gives the script error: Something with class illegal pointer, on the following 3 lines: (Depends on which car gets there faster) PL.GetPerson(0)->PushActionLeaveCar(ACTION_NEWLIST, &p1); PL.GetPerson(0)->PushActionLeaveCar(ACTION_NEWLIST, &p2); PL.GetPerson(0)->PushActionLeaveCar(ACTION_NEWLIST, &p3); I don't know how to solve this error, as I have never had it before. Will make a screenshot if you don't know what I mean
  3. Volgende week sollicitatiegesprek bij ah paletplein.

  4. Yep, so did I. Have it completely legal. It was a package which had Emergency 3 and 4 in one.
  5. Nieuwe mobiel. :-)

    1. Kermit

      Kermit

      nice. Wat voor een?

  6. Thanks for the reply first of all. I have reinstalled the game multiple times, and even the normal multiplayer won't work. I don't use hamachi and don't have it installed either. I have tried running as an admin but it still doesn't work. Even turned UAC off.
  7. Real sad. Haven't got any response? -Bumping this topic up so people will see it.
  8. So there is not a single person who can help me? -Sorry for dubbelposting.
  9. Hello, I indeed noticed there was some interest in that category and started making a dutch application of a Dispatch Simulator myself. Have worked on it for about half a year and there is already a (Dutch) version out there. Tho still in beta phase. I wish you luck in creating one as it has been a hard process for me.
  10. Why is my emergency 4 crashing when I click 'Multiplayer'... :(

  11. The problem is still their. I have tried reinstalling, turning off firewall (+ adding exceptions) This seems to be the problem: *** EXCEPTION 1 at d:\emergency4deluxe\source\gameengineem4\baselib\array.h (103): Out of memory !WARNING: global listener object is still registered! Unregister listener before destroying object! But my memory is 4 GB so I don't understand.
  12. Nederlands: Dit kan je bij elke mod krijgen en is gewoon een bug in Emergency 4 zelf. Sommige mensen krijgen dit bij de LA mod, andere niet en die krijgen het bij een andere mod. Er is geen fix voor. English: You can get the crash at every mod, it's just a bug in Emergency 4 itself. Some people get it with the LA mod, while others get it with an other mod. There is no fix.
  13. Hello, When I go to Emergency 4, everything is fine. Until I press the Multiplayer button. If I press it, the game crashes to desktop. Everything else works fine. I have added the game to my firewall exceptions. DxDiag.txt logfile.txt
  14. ... kmoet naar de tandarts :/

    1. cops

      cops

      Die zijn stom! :@

  15. Seperate development Nothing to do with em4 Hehe, Thanks, I'll try my best. Thank you.
  16. Maffegozer

    VLC Player

    Version 1.1.11

    294 downloads

    A multimedia player which can play almost every multimedia file.
  17. Hello, I've been working for quite a long time on a Dispatch Simulator. Basically it allows you to dispatch vehicles and talk to the 911 caller. You will have to talk to her/him and get information, like a street address. You will also need to help the person, if needed give instructions or calm the person down. Voice control will be added when the simulator is almost finished. A dutch version is already out, but of course it's dutch. That is because I am dutch I've got a multilingual website (Thanks to Joopjr for the script for the language selecting.) English: http://www.meldkamersimulatie.nl/index.php?lang=en Dutch: http://www.meldkamersimulatie.nl/index.php?lang=nl I will post screenshots soon. Maybe even a movie Will keep you updated here, on twitter (@MeldkamerSim) and on the website. Kind Regards, Niels.
  18. It's a program where you can chat with other people while playing a game. (Press a button and a window shows up in game.) You can also browse the web with it ingame. And yes I use it. Add me: maffemozo
  19. Hello B2Bomber, First of all, I haven't read all the topic (sorry if I say something which might already been said.) I voted for the MMORPG game. This because of there being quite a few dispatching simulations out there. (Making one myself actually. Source code is already out there. I started over.) Tho, a lot of these are German. So it might be fun to have an American version out there. But since I like MMORPG more, and I think most people do, (Call of Duty isn't form based is it^^) I think MMORPG would sell better and be more fun. Not making an MMORPG myself because I think it's harder.
×
×
  • Create New...