Bug - unit disapear

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

Post Reply
Kyrian
Posts: 18
Joined: Thu Dec 31, 2020 7:50 pm

Bug - unit disapear

Post by Kyrian »

First of all Happy New Year!

During invasion of France the following happened to me:
- A French unit appears to be a ghost in the sense that I could not attack it despite having unit next to it with operation points to attack
- I move on that French unit with one of my German Armor division to see what would happen and it works but the strength/operation points on my unit got overlayed with the former French unit somehow
- I then move my armor unit to another location and it disappeared
- I checked in the report, among all the Germans units and there was indeed only 1 armor unit instead of the original 2 when starting the 1939 campaign.

Players should report here if they experienced similar issues.
I hope Alvaro can find the origin of this bug although I am not sure what triggered it....
User avatar
ncc1701e
Posts: 10723
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

RE: Bug - unit disapear

Post by ncc1701e »

Don't wait. Please save the following files.

Error game logs are here
C:\Users\"your user ID"\AppData\LocalLow\Kraken Studios\WarPlan\output_log.txt
C:\Users\"your user ID"\AppData\LocalLow\Kraken Studios\WarPlan\player.log

In the player.log, look for out of bound exception or things like that.

You are playing with the v1.00.091 official patch, correct?
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
gwgardner
Posts: 7279
Joined: Fri Apr 07, 2006 1:23 pm

RE: Bug - unit disapear

Post by gwgardner »

You should also send the save file from just before the incident. Zip it and attach here or upload to wetransfer and post the link. Post instructions on which unit, and how to reproduce the incident.

User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Bug - unit disapear

Post by AlvaroSousa »

I know what happened. I just need to know why it happened. Also details like hexes, vs A.I., PBEM, etc.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Kyrian
Posts: 18
Joined: Thu Dec 31, 2020 7:50 pm

RE: Bug - unit disapear

Post by Kyrian »

It was against A.I (allied) and the hex was (145,53) I think
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Bug - unit disapear

Post by AlvaroSousa »

vs A.I.

who attacked who?
Did you land in France in 1944?
I need details on what happened to trace the error.
Was there a failed invasion, attack, hold, retreat action?

There are lots of combat functions that do specific things. Anyone of them could have bombed.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Bronze
Posts: 200
Joined: Wed Nov 15, 2006 9:12 am

RE: Bug - unit disapear

Post by Bronze »

I too have had this happen several times, mostly in Northern Africa - makes for a much more even game against the A.I. [:)]
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Bug - unit disapear

Post by AlvaroSousa »

Need to post the log and pay attention when this happens under what conditions so I can find the error.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Kyrian
Posts: 18
Joined: Thu Dec 31, 2020 7:50 pm

RE: Bug - unit disapear

Post by Kyrian »

It was Germany (me) against France (AI) in 1940.
How do I post the log?
I try copying it here and I am not allowed to post
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Bug - unit disapear

Post by AlvaroSousa »

I emailed you back. I suspect it might be a player move timing issue due to Unity engine and how I have to navigate controls. I never have this problem but I move units around slowly. If someone moves units quickly it might cause this.

At least that is my suspicion.

Also what version do you have?
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
coreymas
Posts: 58
Joined: Wed Dec 13, 2006 5:12 pm
Location: Ottawa ON Canada

RE: Bug - unit disapear

Post by coreymas »

I just had this happen too... i have attached the contents of my log file since i cannot upload anything here:

Moving an Armored Corps from 143, 58 to 143, 57

Version of game.. latest patch.

Mono path[0] = 'E:/SteamLibrary/steamapps/common/WarPlan/WarPlan_Data/Managed'
Mono config path = 'E:/SteamLibrary/steamapps/common/WarPlan/MonoBleedingEdge/etc'
Initialize engine version: 2019.4.12f1 (225e826a680e)
[Subsystems] Discovering subsystems at path E:/SteamLibrary/steamapps/common/WarPlan/WarPlan_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: NVIDIA GeForce RTX 2070 (ID=0x1f07)
Vendor:
VRAM: 8031 MB
Driver: 27.21.14.6079
Begin MonoManager ReloadAssembly
- Completed reload, in 0.096 seconds
D3D11 device created for Microsoft Media Foundation video decoding.
<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 0.469100 ms
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.204800 ms

Unloading 69 unused Assets to reduce memory usage. Loaded Objects now: 1631.
Total: 30.289700 ms (FindLiveObjects: 0.166800 ms CreateObjectMapping: 0.033300 ms MarkObjects: 28.883200 ms DeleteObjects: 1.206200 ms)

Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 4.599900 ms

Unloading 3987 unused Assets to reduce memory usage. Loaded Objects now: 982.
Total: 55.563300 ms (FindLiveObjects: 0.758900 ms CreateObjectMapping: 0.309500 ms MarkObjects: 28.903900 ms DeleteObjects: 25.590500 ms)

Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.822000 ms

Unloading 82 unused Assets to reduce memory usage. Loaded Objects now: 1631.
Total: 32.326400 ms (FindLiveObjects: 0.459200 ms CreateObjectMapping: 0.041600 ms MarkObjects: 30.603600 ms DeleteObjects: 1.221500 ms)

NullReferenceException: Object reference not set to an instance of an object
at LandObj.EndMove () [0x00124] in <952238ecad714e479b1cdecacf80c1fb>:0
at LandObj.MoveUnit () [0x006c2] in <952238ecad714e479b1cdecacf80c1fb>:0
at LandObj.Update () [0x0006d] in <952238ecad714e479b1cdecacf80c1fb>:0

(Filename: <952238ecad714e479b1cdecacf80c1fb> Line: 0)

Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 5.728800 ms

Unloading 4122 unused Assets to reduce memory usage. Loaded Objects now: 982.
Total: 91.345800 ms (FindLiveObjects: 1.323900 ms CreateObjectMapping: 0.288600 ms MarkObjects: 31.457100 ms DeleteObjects: 58.275900 ms)

Setting up 3 worker threads for Enlighten.
Thread -> id: 47e0 -> priority: 1
Thread -> id: 4ffc -> priority: 1
Thread -> id: 42ac -> priority: 1


NOTICE THE NULL REF EXCEPTION... :)
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Bug - unit disapear

Post by AlvaroSousa »

Definitely when you moved. Can you describe me the map, where you moved to the terrain how many operation points left.

I am trying to nail this down.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Bug - unit disapear

Post by AlvaroSousa »

Do you play fast? Like super fast or take your time?
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
coreymas
Posts: 58
Joined: Wed Dec 13, 2006 5:12 pm
Location: Ottawa ON Canada

RE: Bug - unit disapear

Post by coreymas »

It was my first move for my armored unit so i had full operation points left.
Weather was snow (it happened in early Jan)
was moving from Rotterdam to Antwerp.

I was not play that slow... i think i had just moved an infantry unit beforehand.

Now that i think of it... there was a weird display on the unit... like there was another unit underneath it .. it looked shadowed.

Hope that helps...

Corey
Post Reply

Return to “WarPlan”