Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » just one more thing....
just one more thing.... [message #239111] Sun, 14 January 2007 07:52 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Seye, i need positioning.

say if i have a map that is 100x100 and a map that is 1000x1000, i would need to find out how to scale the positioning that SSAOW reports EG:

a a player stands 2 10x10 grid squares from the middle of a 100x100 map. what number would this generate?

same with a player stands 2 10x10 grid squares away on a 1000x1000 map.

all i know is the map is devided into 4 quartiles, 2 positve numbers indicate the top right, a
minus and a positive - top right
a minus and a minus - bottom left
a positive and a minius bottom right.

the reason i need to know is because i need to know how to convert what Scripts.dll reports(player position) into pixels on the picture of the map.

this is hard to explain, i hope you know what i mean.
Re: just one more thing.... [message #239362 is a reply to message #239111] Tue, 16 January 2007 02:36 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
anyone? this is that last thing i gotter do before i can release to BETA testers.
Re: just one more thing.... [message #239388 is a reply to message #239111] Tue, 16 January 2007 06:00 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I always thought ssaow positions were equivalent to the positions in max... 1 unit = 1 unit sort of thing.

I have logs with 3 numbers for the position, which sort of supports this idea...

[19:25:19] _GAMELOG CREATED;VEHICLE;1500000008;vet_sys_flamer;-105;46;1;0;400;400;0


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 16 January 2007 06:02]

Report message to a moderator

Re: just one more thing.... [message #239406 is a reply to message #239111] Tue, 16 January 2007 08:37 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
probably... but then, how do i convert that to the pixelmapping of a random sized image?
Re: just one more thing.... [message #239452 is a reply to message #239111] Tue, 16 January 2007 13:18 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Well.. for each map I suppose you will have to somehow work out what it's length / width is in units...

http://steamsignature.com/card/1/76561197975867233.png
Re: just one more thing.... [message #239477 is a reply to message #239111] Tue, 16 January 2007 16:23 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
oh yeah, silly me. so now all i need it how many units to one pixel Razz and how do i find out how many units are in the map loaded.
Re: just one more thing.... [message #239548 is a reply to message #239111] Wed, 17 January 2007 07:07 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I don't think there is any way to do that via scripts.. you could setup some kind of .ini file or something, and manually enter the data for each map, and the path to its top-down image (if you are using one), which would also allow people to add fanmaps to the program by creating an image and adding it to the .ini file.

As for finding the length / width of the default maps, I guess you will just have to load them in leveledit, put things on the very corners of the map and look at their properties to find the position.


http://steamsignature.com/card/1/76561197975867233.png
Re: just one more thing.... [message #239552 is a reply to message #239111] Wed, 17 January 2007 07:33 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
the ini file sounds like a good idea. what i was going to do was have a folder of JPG files. these must be the same name as the mix file of the map. then the server would just send the map name, the Seye would load it acordingly.

as for positioning. what i could do is, get someone to go to a landmark on a map, manualy change the reletive position by adding subtracting etc. and do it via trial and error?
Re: just one more thing.... [message #240277 is a reply to message #239111] Sat, 20 January 2007 13:38 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Well using LE I have got these approximate values for the size of City / City Flying, let me know if they work ok and I will get the others Smile


City / City Flying
X: 302
Y: 494


http://steamsignature.com/card/1/76561197975867233.png
Re: just one more thing.... [message #240280 is a reply to message #239111] Sat, 20 January 2007 14:16 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
thanks!, will do Wink
Previous Topic: How to get server up and WOLSpy
Next Topic: Ranks -> WWW in html NOT PHP Brenbot 1.5
Goto Forum:
  


Current Time: Wed May 08 05:09:31 MST 2024

Total time taken to generate the page: 0.00738 seconds