View previous topic :: View next topic |
Author |
Message |
parksbanyon
Gunner
Posts: 565
13127 Gold -
|
Posted: Wed Aug 07, 2013 9:24 pm Post subject: COmpass errors |
|
|
Something I have noticed since the 80's till now is the ingame compass (obviuosly for games that have a compass) never work well. Pirates! included. In SMP it is mainly east/west reversals.
I think I know why. I noticed in the SMP and east indies mod landscape.ini a global reference to diameter.
In game the 0,0 to 255,255 reference was used. I.E. a 2d square not a sphere. If the compass routine accounts for an equivalent version of a GMT for a true sphere (it does not even have to exist in the visible game) and includes the math for said sphere using the haversine function should take out compass errors. |
|
Back to top |
|
|
sparticus
Helmsman
Posts: 5818
44872 Gold -
|
Posted: Fri Aug 09, 2013 2:25 am Post subject: Re: COmpass errors |
|
|
parksbanyon wrote: | Something I have noticed since the 80's till now is the ingame compass (obviuosly for games that have a compass) never work well. Pirates! included. In SMP it is mainly east/west reversals.
I think I know why. I noticed in the SMP and east indies mod landscape.ini a global reference to diameter.
In game the 0,0 to 255,255 reference was used. I.E. a 2d square not a sphere. If the compass routine accounts for an equivalent version of a GMT for a true sphere (it does not even have to exist in the visible game) and includes the math for said sphere using the haversine function should take out compass errors. |
I just thought the compass was there to aid you in getting more lost - until you memorized the map |
|
Back to top |
|
|
parksbanyon
Gunner
Posts: 565
13127 Gold -
|
Posted: Fri Aug 09, 2013 9:07 am Post subject: Agreed |
|
|
That is about all it is really good for at this point (getting lost or increasing the level of disorientation) |
|
Back to top |
|
|
sparticus
Helmsman
Posts: 5818
44872 Gold -
|
Posted: Fri Aug 09, 2013 12:16 pm Post subject: Re: Agreed |
|
|
parksbanyon wrote: | That is about all it is really good for at this point (getting lost or increasing the level of disorientation) |
Than I say :
to the compass |
|
Back to top |
|
|
jlangsdo
Cutthroat
Posts: 400
10932 Gold -
|
Posted: Fri Aug 09, 2013 12:25 pm Post subject: |
|
|
Explain again, please? What is the compass distortion that you see?
SMP is not played on a spherical planet, it is on a rectangular grid. |
|
Back to top |
|
|
parksbanyon
Gunner
Posts: 565
13127 Gold -
|
Posted: Fri Aug 09, 2013 8:42 pm Post subject: Therein is the problem |
|
|
Being we are on the Pirates! forum we'll stick with that. I think programmers think the same thing "its on a finite grid map so we don't have to account for a sphere".
Yet all compass' ingame err usually reversing north south or east west. Pirates! seems to do it more often (or the situation for it occur) east-west.
Example: I use the compass when I land to seek buried treasure. On the higher difficulties less landmarks are visible. Because of the compass error I try to locate a landmark that the treasure is due (N,S,E,or W of) I know I am walking due west but the compass may clearly show due east.
I haven't personally looked into the compass subroutines of a game since the 90's but at that time the subroutine were calculated for a finite grid not a sphere and they didn't work then either. It made sense to me then (and still does) why worry about the parts that aren't playable, but I'm thinking that may be the flaw.
I'm thinking by modding the routine to account for a sphere and providing a standard reference (equator and GMT) and referencing the location of and size of the game grid it may eliminate said error. I am a firm believer in the KeepItSimpleStupid (KISS) methodology but this has been "bugging" me for 30 years. |
|
Back to top |
|
|
Roland
Helmsman
Posts: 4085
22541 Gold -
|
Posted: Fri Aug 09, 2013 9:41 pm Post subject: |
|
|
I used to think the compass in SMP was screwed up too. And then I learned how to read the compass correctly. Are you sure you are reading it right?
The compass always points north. If it is pointing straight down, then you are facing south. If it is pointing to the right, then you are facing west. If it is pointing to the upper left, then you are facing northeast. |
|
Back to top |
|
|
Mr. Blue
Rigger
Posts: 1947
68979 Gold -
|
Posted: Fri Aug 09, 2013 10:17 pm Post subject: |
|
|
I've never noticed any compass errors. Like Roland said, compasses are supposed to point north, which could be right behind you (represented as down on a flat screen.) _________________ " ... the mistakes that we male and female mortals make when we have our own way might fairly raise some wonder that we are so fond of it. " George Eliot |
|
Back to top |
|
|
parksbanyon
Gunner
Posts: 565
13127 Gold -
|
Posted: Sat Aug 10, 2013 3:56 am Post subject: uhhhhhhhhhhhh |
|
|
wemt in game. Yep ur right. In my head I was forgetting that even tho I have turned left or right the needle will be opposite of the turn! 30 years 30 years. What a wasted life! |
|
Back to top |
|
|
|