Page 1 of 1
Bug with new Landstack feature
Posted: Sun Oct 13, 2019 8:50 pm
by Jabod
I was testing this out and discovered that I always encounter a bug.
If I carry out any combat on a Location Type structure, I always get the attached error message. This is where I have set a Landstack limit for the Location Type higher than zero.
If I carry out the combat on a hex without a Location Type, then I do not get the error message. Also, if I edit the Landstack limit to set it back to zero, I also do not get the error message.
So it looks like using the Landstack feature is what is causing the bug. I haven't changed any other variables: e.g. I left all the combat modifiers for the Location Type at "1".

RE: Bug with new Landstack feature
Posted: Sun Oct 13, 2019 10:09 pm
by ernieschwitz
Question: Have you made sure that the location that has the Landstack limit is one that is made using the Natocounters graphics. That is one that selects a different landscape type for combat calculations, than the original loctypes landscape?
RE: Bug with new Landstack feature
Posted: Sun Oct 13, 2019 11:50 pm
by ernieschwitz
Perhaps you could show a screenshot of the Location in the editor

Might be helpful.
I tested it, and could not find an error on the version I made.
RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 2:03 am
by Jabod
I am using standard graphics.
RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 2:04 am
by Jabod
Embedded

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 2:06 am
by Jabod
The Location Type editor page.

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 2:07 am
by Jabod
Units added.

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 2:11 am
by Jabod
Now I start the game and prepare for battle. Once I press the "Attack" button, it freezes and that error message appears. This will always happen on any of the hexes with a Location Type - not just that particular Location and that Type. But the error goes away if I go into the editor and set the LandStack to zero.

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 2:12 am
by Jabod
Error message.

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 4:21 am
by ernieschwitz
ORIGINAL: Jabod
The Location Type editor page.
It's this picture I could use a bigger version of... (can't really read anything in that one)
RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 4:28 am
by ernieschwitz
It should look something like this:

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 4:33 am
by ernieschwitz
The Important stuff is where it says
OnDestruct LT: -2 (which gives the order that this loctype is to be destroyed without changing the landscape)
And
LT Use: 44,0 (which tells the game to use landscape type 44 for stats, and use sprite 0 for drawing)
Without the LT Use set, it won't be able to determine what landscape it is to use, when the fortifications defensive measures for some SFTs (Those that have been chosen for the Landstack) and those that have not. And this is where I think that it crashes for you.
Grey square is secret's being hidden
RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 4:42 am
by ernieschwitz
Be aware that when you use a LT like this you need to use a natographic. (Graphics found in the natographic subfolder)... They have numbers.
In my case I use 5, cause it is the fortification graphics number.
So
LT# on construct: -1 (or it would change the landscape to whatever you are building would do, and thus there would be no second landscape to determine what changes there were when the fortification was destroyed.)
And the Natographic number at
ExtraGraphic#: (in this case 5, but if it was a fortress 6)
Oh and BTW you are using the OLD graphics, not the ANewDawn ones. If you need help in switching to those you will need to restart your scenario building process.

RE: Bug with new Landstack feature
Posted: Mon Oct 14, 2019 5:05 am
by Vic
Hi Jabod,
Could you send a save game from which the bug is repeatable to '
vic@vrdesigns.net' ?
I'd like to take a look.
Best wishes,
Vic