Hey,
i've started working on a simple visual interface,
got 2 issues that are holding me back,
1. traslateing a waypoint:
<!-- # 1 --><waypoint x="6427" z="5435" y="154" type ="RUN"></waypoint>
into X,Y cordinations, and no its absolutly not 64.27,54.35
i tried that.
2. how many of you guys are linux users? im currently working on Windows Forms application and as far as i remember,
it will not work on linux, i could be wrong...
anyone who can help out? (specialy with 1... cause im trying lots of crappy formulas to translate based on experience.. which could take forever)
Working on visual interface
Re: Working on visual interface
MM coords and in game coords will never match. I can't remember off hand but I think MM coords are from a central point in the entire world map but in game uses coords for that specific map.
It's something like that anyway.
It's something like that anyway.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Working on visual interface
thanks, i'll try following that way but would love it if some1 could tell for sure what is the mathematical formula
Re: Working on visual interface
MM gets it's coords directly from memory and it is in relation to the entire world map, the memory is a float type and has no relation to the coords you see in game. There is no formula.
Best you could do if trying to use both sets of coords in something is to store the data in tables. So get the world coords of a map.
So lets say as an example sascilia steppes is X -3000 to -5000 and Z 1200 to 2300.
You could then turn those coords into coords that would match in game by knowing that in game is X 0 to 100 and Z is 0 to 100. So then do the difference of the MM X min and max of 2000 and divide it by the in game coords difference of 100 and then you know that each in game point is worth 20 MM points.
So for X
in game 1 = MM -3020
in game 50 = MM -4000
in game 100 = MM -5000
The values are purely an example and are in no way actual coords.
Best you could do if trying to use both sets of coords in something is to store the data in tables. So get the world coords of a map.
So lets say as an example sascilia steppes is X -3000 to -5000 and Z 1200 to 2300.
You could then turn those coords into coords that would match in game by knowing that in game is X 0 to 100 and Z is 0 to 100. So then do the difference of the MM X min and max of 2000 and divide it by the in game coords difference of 100 and then you know that each in game point is worth 20 MM points.
So for X
in game 1 = MM -3020
in game 50 = MM -4000
in game 100 = MM -5000
The values are purely an example and are in no way actual coords.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Working on visual interface
native winforms or .net winforms?
isn't mono a .net port for linux?
why do you need to translate the coords?
I have a .net app that talks with the mm bot via a tcp connection which has a list of waypoints etc it can display visually (simple map using x,y coords etc) which uses an AStar algorithm for pathing etc in additions to:
Plots local map of nearby stuff
Lists nearby objects (from CObjectList)
Runs lua code snippets
Creates waypoint files for movement and tells mm to run them
Acts as a keypresser to drive my DIYCE scripts
Monitors chats and allows the user to send them (a tab per channel + separate windows for individual whispers and multi-line sending) - also captures printf output
Shows characters details (most player.* stuff)
Shows equipment / gear
Enables teleporting/fly hacks
configures lootfilter++ and DIYCE settings
currently working on quest,item and npc database and keeps them updated from questbook etc (gonna be used to get bot to self-quest)
isn't mono a .net port for linux?
why do you need to translate the coords?
I have a .net app that talks with the mm bot via a tcp connection which has a list of waypoints etc it can display visually (simple map using x,y coords etc) which uses an AStar algorithm for pathing etc in additions to:
Plots local map of nearby stuff
Lists nearby objects (from CObjectList)
Runs lua code snippets
Creates waypoint files for movement and tells mm to run them
Acts as a keypresser to drive my DIYCE scripts
Monitors chats and allows the user to send them (a tab per channel + separate windows for individual whispers and multi-line sending) - also captures printf output
Shows characters details (most player.* stuff)
Shows equipment / gear
Enables teleporting/fly hacks
configures lootfilter++ and DIYCE settings
currently working on quest,item and npc database and keeps them updated from questbook etc (gonna be used to get bot to self-quest)
Re: Working on visual interface
@lisa - tnx for that, will try implementing that.
@BillDoorNZ - hey i'm you, 3 years in the past
well im talking about very simple .net winfrom that reads xml file and shows the route on a pictureBox..
nothing fancy...
and i needed that when i had wanted to add a small fix to existing waypoint... wanted to make the char go a little to the left on a certain point and figuring out what i need to add was a bit of a headache...
would love it if you could link me to what you have already dont so i can get new ideas.
im sending you my personal email in a private message, if you can send a link, great, if not, i will understand
@BillDoorNZ - hey i'm you, 3 years in the past
well im talking about very simple .net winfrom that reads xml file and shows the route on a pictureBox..
nothing fancy...
and i needed that when i had wanted to add a small fix to existing waypoint... wanted to make the char go a little to the left on a certain point and figuring out what i need to add was a bit of a headache...
would love it if you could link me to what you have already dont so i can get new ideas.
im sending you my personal email in a private message, if you can send a link, great, if not, i will understand
Who is online
Users browsing this forum: Bing [Bot] and 3 guests