Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
• Announcements

• Signatures03/04/2016

Hi everyone. It appears that the update to the new forum has affected the format of the majority of signatures (adding extra spaces, changing sizes etc.). Due to this, could everyone please check their own signature, ensuring that it complies with the site rules. See the http://www.emergency-planet.com/tos.html/ or http://www.emergency-planet.com/topic/16848-acceptable-signature-sizes/ for more information.  We'll give it a few weeks to give enough time to edit signatures, after that the unnecessarily large signatures will simply be removed. Thanks for your cooperation. Regards, EMP Staff.

New freeplay map, eventpool issues

Recommended Posts

Hi guys, im playing around in the editor and have created a new freeplay map. im struggling to figure out how to connect my map to the correct event pool, all it does is load the test event pool.

This is the debug log, i removed the test_event_pool to see what happend.

[2016-11-07 23:46:59][QSF info] QSF successfully started 14797 entities of the map "em5/map/map10_metropolis/map10_metropolis.bin" (2656 ms)
[2016-11-07 23:46:59][QSF info] QSF successfully loaded the map "em5/map/map10_metropolis/map10_metropolis.bin" (4121 ms)
[2016-11-07 23:46:59][QSF info] QSF unloaded the old map in 0 ms
[2016-11-07 23:46:59][QSF info] QSF successfully loaded the layers of the map in 0 ms
[2016-11-07 23:46:59][QSF info] QSF successfully loaded the entities of the map in 3 ms
[2016-11-07 23:46:59][QSF info] QSF successfully deserialized the map (4 ms)
[2016-11-07 23:46:59][QSF info] QSF successfully started 16 entities of the map "em5/map/default/supervisor.bin" (47 ms)
[2016-11-07 23:46:59][QSF info] QSF successfully loaded the map "em5/map/default/supervisor.bin" (52 ms)
[2016-11-07 23:47:11][QSF error] Unable to open file 'em5/em5_eventpool/test/test_event_pool.json' for content hash calculation, exception caught: Systemet finner ikke angitt fil.
[2016-11-07 23:47:11][QSF info] Game startup...
[2016-11-07 23:47:11][QSF info]  - Mode: "freeplay"
[2016-11-07 23:47:11][QSF info]  - Map: "em5/map/map10_metropolis/map10_metropolis"
[2016-11-07 23:47:11][QSF info] QSF Lua 5.1.4 initialization
[2016-11-07 23:47:12][QSF error] QSF failed to load the asset JSON file "em5/em5_eventpool/test/test_event_pool.json" with error: Systemet finner ikke angitt fil.

i want it to load: "\em5_eventpool\freeplay\metropolis_freeplay_eventpools.json" instead. but i cant find out where to define this.

Have any of you guys had any luck when it comes to this?

I really want anything other then simple fires and medical calls

Share on other sites

have no clue how to achive it. But maybe you want to modify the test_event_pool.json instead.

Share on other sites

Yeah its what i ended up doing, il let you guys know if i find a solution to use another eventpool.
Guessing the same goes for unitpool. but i havent started to fiddle with that

Share on other sites

the eventpool should be:

mapname_(freeplay_eventpool/or whatever pool)

this is the lo which I got with the "testmap"

[2016-11-13 22:05:36][QSF error] There is no event pool with the key: testmap_freeplay_eventpool
[2016-11-13 22:05:36][QSF warning] The eventpool "testmap_freeplay_eventpool" is unknown. Loading default event pool

same naming convention for the unitpool:

testmap_freeplay_unitpool

Hope that helps

Share on other sites

Thanks Killerconsti, and sorry for late reply

Been using log files more frequent and it helps alot.

i have made a new freeplay map that is almost finished. i was wondering if you have made any progress in making a new campaign?

I want to make a simple campaign with a Harbor/airport fire in the new map, something simple, not scripting complex.

Have tried messing with the em2016/em2017 campaign to see if i can get another campaign appear ingame. but no luck yet

Share on other sites

I havent done a campaign yet. But I have done

-new freeplay events

-new gui elements in the main menu

den-fellow from 16t finally told me how to start a new game from a button press. So by pressing this button you'll enter the freeplay munich map. You could now store just a global variable which would trigger your scenario

em5::GameSessionConfiguration& gameSessionConfiguration = EM5_GAME.getGameSessionConfiguration();
em5::MapIdentifier mapIdentifier(0);    // 0 for Munich map
gameSessionConfiguration.setupForFreeplay(mapIdentifier);
EM5_APPLICATION.triggerStartGame();

Unluckily if you want to do a new campaign there is a lot c++ required.

It's like a movie script, you need to tell the game everything that happens

-Set a Building on Fire and activate a hidden layer with rubbish and persons (optional)

-deactivate freeplay (else new events will pop up if we used the setupForFreeplay function)

-epic beginning clip

-Register a Listener who will tell you once all fires are extinguished and no hurt person is anymore at the map.

-scores if you want to do

My last investigation was about to create a camera track (this can be done editor) but I definitly need a second look into this.

picture from the current version 3.1 (even if iit says 2.7) which I have uploaded at 17. of December at the emergency-forum