Keep going...Your on a role :D
Hiyoal
Hiyoal
Quote:
I started coding the packet layout for the cobot client <-> server communication, it probably wont be implemented in the first release but it'll be there, this is mainly because my inet right now is going in and out, and it would be pointless to include the client-server architecture when my inet is bumping me off about once an hour for about 5 mins... It would cause the clients to drop and then stats to not be getting sent and would create alot of problems at this point... another alternative that i was considering is posting to a php script and then having the statistics viewable through a website, but my php isn't where it should be, so for now, its not a necessity, and its not going to be done right now. currently path finding is going by adjacent coordinates, i need to tweak this to leave a few coordinates in between, and also allow it to beable to jump gaps, which it can't do right now. The thought process for this is probably going to be:
Main loop - looping through coords to build the path.
CheckCoords Loop - checks x coords away in all directions, if its possible to jump there, then add it, otherwise deincrement x and check again, until the coord is not blocked and is jumpable.
The biggest difficulty in the path finding is going to be navigating across like 3 maps, since its going to need to use portals to get there, this means that there is going to need to be an indexed list of portals and their connections, and also an indexed list of scrolls and the coords/map id they dump you at. On top of this, linking the map id's with the actual dmap file name to build the path is going to be difficult, since to the best of my knowledge, each dmap might be assigned to 1 or more map id's?
The path finding also doesn't take into account the height of each tiles, i'm not sure what the maximum difference in height is before co wont allow you to jump it, any insight on this would aos be great, but for now, it should get you by on path finding fairly open maps, could cause some problems though in like ape city.
the NPC POI system still needs to be coded, so the bot can go back and restock/teleport/sell/do quests/what ever... this will probably be done through the client<-> server communication to allow a master list of npcs, their coords, what they do, and such... so each individual person doesn't have to index everything, and having everything in a built-in enum is inpractical, in my opinion... when its time for the bot to need an npc, it will probably query the cobot server and the server will respond with a npc and the coords to use, and then the bot build the path on its own to get there.
What can you do to help this project?
Index all the portals you go through, if your capable of it... all i need is the x and y coord of the portal, the map id its on, and the map id it dumps you on, and the x and y coord there as well.
Index all the scrolls as you use them, all that is needed is the map id, and the x and y coords it dumps you at.
link map id's to their dmap file
Give me the packet structures... this would be great if you could give me packet structures, it will save me a great deal of time, and will help toss out releases faster, since once the framework of the bot is done, mainly what will be holding up releases is going to be adding more features, which generally will require more use of packets.
This is all i can think of now, i'll update the main post later.