Jump to content
kimdaniel

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] Loading ingame HUD
[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:00][QSF info] Finished loading ingame HUD in 705 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

 

 

 

 

Link to comment
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

Link to comment
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?

you mentioned something about that in your minimod post.

 

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

 

Link to comment
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

hohoho.png

hohoho.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...