Forum Jump :

Author Message


Posts: 18
Rank:


Level: Member

Country: fr
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2020-06-24 20:34        
     
Hi, I recently came across this issue :



I might firstly state that it occurs on vanilla game & unit has a map in it's slot.

Issue isn't happening if I don't select another unit tho.
What I mean by that is when my mission begins, scripts starts randomizing everything, including player unit side/faction.
Also, issue is not happening 100% all the time, but most of the time and I'm not able to figure what is triggering this.

So to begin with, in Eden Editor, player starts as a basic civ unit, then, when mission starts, another random unit will spawn given an array & player will switch to that unit.

The Setup :
1 opfor "dummy unit" (player0), 1 blufor "dummy unit" (player1), 1 independant "dummy unit" (player2) & 1 player civilian (player3) are placed on terrain.

Now, when trying the exact same thing on a new empty mission, map does show up as usual.

Here is the part of the script I'm using in my mission, map almost never works :

And here the init of a quick test mission where the map works (quite same stuff) :

As you see I even tried simulating the delay that occurs in my main mission due to cfg sorting before spawning units.

I'm out of Ideas...
Is this a known issue ? The little I found didn't help *NO*
Any advice would be welcome.


Edit : gathered more intel.
I started to see a pattern there (all east + mission first start)
But then I had this (unconsistent data on mission restart)

It looks completely unconsistent, I really don't know what to do...

This post was edited by BurnToAshes (2020-06-24 23:44, 160 days ago)


Author Message


Posts: 18
Rank:


Level: Member

Country: fr
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2020-06-30 13:30        
     
Turns out showMap has to be enabled in description.ext.

BIS WIKI:
showMap : Defines if the map is shown after the mission starts.

Even tho it's not it's intended use, it just works for whatever reason.
My guess is that if you start and continue playing your mission with the same unit you dropped from the editor, the map will show up @loading done (intended use), but as soon as you script switch units, it doesn't show map at start but allows map to be shown in your mission. Strange...

Also doesn't explain unconsistency I was experiencing with this disabled, might be missing something (enableSimulation too soon?)... in any case, it works now with that enabled. Hope this helps.