Hilly LOS serious problem

Post bug reports and ask for support here.
Post Reply
jonj01
Posts: 233
Joined: Fri Feb 21, 2014 12:57 am

Hilly LOS serious problem

Post by jonj01 »

There is another serious self consistency bug in the LOS program for 1,09.

If you draw LOS from a hill to a ground hex(with various ground level obstructions) The LOS is clear, (as it should be). However, if you draw a LOS from the same ground level hex to the same hill hex the LOS is blocked.

Same two hexes...one can fire on the other ..the other cannot fire because its "LOS" is blocked.

This is a problem...everyone and their dog will set up on the hill because they are immune to fire from the ground.

Anyway the LOS is not solved at all for hills.

User avatar
Barthheart
Posts: 3079
Joined: Tue Jul 20, 2004 3:16 pm
Location: Nepean, Ontario

RE: Hilly LOS serious problem

Post by Barthheart »

Is this for all hills or a specific hill ground combo?
Life is not a journey to the grave with the intention of arriving safely in a pretty & well preserved body,
but rather to skid in broadside, totally worn out & proclaiming "WOW, what a ride!"
jonj01
Posts: 233
Joined: Fri Feb 21, 2014 12:57 am

RE: Hilly LOS serious problem

Post by jonj01 »

It happens always. Always.
It happens on every map. load a few of laskas maps(from SL) and you will see.

It only takes a couple of minutes in the editor to test this. load any map.
1) go to any map with a few clear hexes in front and behind a wheat or woods hex.
2) hit f1 for terrain.
3) put a level 5 hex in there.
4) draw line of site from the hill hex to a hex two hexes behind the woods or wheat hex..clear los
5) draw line of site from the clear hex behind woods hex to hill...blocked.


this happens because of the way the LOS is determined by the los program....the program seems to draw a line. Check the LOS hex by hex (starting from the hex the LOS is draw from) until it reaches a "Blocking" terrain..then it stops.
this probably saves time for the program.
which works fine on ground level.

What the program needs to do is either check the LOS from both directions and if it is clear in one direction...it is clear in both.

This might slow the program some if the LOS for a scenario is not established when the scenario is saved. But I'm pretty sure it is. So It would just take longer to save a scenario...no big thing.

A more convoluted approach would be:
have the program needs determine which hex is higher level.
IF one hex is higher level
THEN begin LOS check from higher level.
And if LOS is clear from the higher level to the lower level hex.
THEN LOS if clear for both directions.

If no higher level hex then proceed normally.

May be faster but a bigger pain to code.. i would think.

Anyway it has to be fixed...the game is unplayable on any map with hills right now.
User avatar
Tom Proudfoot
Posts: 1297
Joined: Tue Apr 25, 2000 2:00 pm
Location: Alameda, CA
Contact:

RE: Hilly LOS serious problem

Post by Tom Proudfoot »

Never mind, I see it.
usgrandprix
Posts: 97
Joined: Fri Mar 21, 2014 2:11 pm
Location: Indianapolis

RE: Hilly LOS serious problem

Post by usgrandprix »

Hi. In case it helps, I'm having an issue with los being blocked down but not up. I attached some screens.

Attachments
los.zip
(431.12 KiB) Downloaded 8 times
jonj01
Posts: 233
Joined: Fri Feb 21, 2014 12:57 am

RE: Hilly LOS serious problem

Post by jonj01 »

ORIGINAL: usgrandprix

Hi. In case it helps, I'm having an issue with los being blocked down but not up. I attached some screens.

Yes, I checked it myself with laskas ASL-BC-002b.mpp.....the program makes a blind hex (level 0) behind a level 1 hex..from a level 2 hex. As the rules provide for.
But when the LOS is checked from ground to level 2..no blind hex is included.

So there are two problems...1) the program thinks the LOS is blocked when its not...from path obstacles.

and 2) the program thinks it is clear when its blocked due to blind hexes.

maybe both of these can be fixed by checking the LOS in both directions when saving the game.
a)with blind hexes apply the blocked one to both LOS traces.
b) with path obstacles apply the clear one to both LOS traces

what this really comes down to is HOW the program does the LOS traces. It seems to go hex by hex comparing pairs of hexes down the line, until it reaches an blocking terrain. It applies an additional process for hills to ground(adding blind hexes)

Very complicated.



Tom,

perhaps you contact this guy
Rodney Kinney (rkinney@msi-world.com)
he did the programming for VASL and I tried their LOS program which has a bunch more stuff to worry about ...and it worked pretty well.

he might have an easy fix for you.

then again maybe he used an empirical approach...they have over 200 freakin boards so I don't know how he used an empirical approach...it would take over 1000 hours to go hex by hex.
User avatar
Tom Proudfoot
Posts: 1297
Joined: Tue Apr 25, 2000 2:00 pm
Location: Alameda, CA
Contact:

RE: Hilly LOS serious problem

Post by Tom Proudfoot »

OK, there were two bugs in the LOS stuff that were interacting with each other and causing this, I think it's fixed now - if you want to give it a try and see if it works for your crazy tons-o-hill maps, you can grab it here.

(This is .exe only, unzip over a 1.09 install, will be labeled 1.09b and is a debug version so runs a little slower and is incompatible in multiplayer with 1.09, you know, details. :P )

Anyway, let me know. I have a couple more things I want to get in 1.10, but wanted to see/verify if this fix works. Thanks.
jonj01
Posts: 233
Joined: Fri Feb 21, 2014 12:57 am

RE: Hilly LOS serious problem

Post by jonj01 »

ORIGINAL: Tom Proudfoot

OK, there were two bugs in the LOS stuff that were interacting with each other and causing this, I think it's fixed now - if you want to give it a try and see if it works for your crazy tons-o-hill maps, you can grab it here.

(This is .exe only, unzip over a 1.09 install, will be labeled 1.09b and is a debug version so runs a little slower and is incompatible in multiplayer with 1.09, you know, details. :P )

Anyway, let me know. I have a couple more things I want to get in 1.10, but wanted to see/verify if this fix works. Thanks.

What a GD hero you are Tom! I will install this ASAP...sorry i've been such a pain in the neck with the LOS stuff.
jonj01
Posts: 233
Joined: Fri Feb 21, 2014 12:57 am

RE: Hilly LOS serious problem

Post by jonj01 »

Just tried this patch out...it does a great job at doing the LOS...
you just can't play anygames or save any scenarios..using 1.09b version.

I use Windows 7 64x so this may be the root of the problem.

Good job..it does the LOS right...I checked that.
User avatar
fran52
Posts: 603
Joined: Mon Jun 04, 2012 10:18 am
Location: Como Italy

RE: Hilly LOS serious problem

Post by fran52 »

Thank you Tom,now we can go with our crazy scenario.I hope to see soon expansion for this game(Pacific).
Post Reply

Return to “Tech Support”