Offline play

Thoughts on the further development of Haven & Hearth? Feel free to opine!
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Offline play

Post by loftar »

What numbers is it that you ask for? What would you need apart from those offsets?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
Butko
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Post by Butko »

loftar wrote:What numbers is it that you ask for? What would you need apart from those offsets?
Numbers I can actually use. This I need to debug that in some kind of IDE. If I see where and how is calculated or stored I can just take numbers and use them :)
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Offline play

Post by loftar »

Butko wrote:If I see where and how is calculated or stored I can just take numbers and use them :)
So, what? Is it the actual offset that you haven't been able to figure out how it is stored?
Resource.java, line 472 wrote:

Code: Select all

o = cdec(buf, 7);
It's stored as a pair of signed 16-bit numbers starting at byte 7 in the resources' image layers.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
Butko
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Post by Butko »

Well I can't get client into my IDE to debug it. I just can't run in there so atm not possible for me to get numbers out of that. Sry.
themendios
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: Offline play

Post by themendios »

Heehee if you are getting hung up at his little signed to unsigned byte conversion function you are screwed trying to reverse engineer a server ;)

But I will be nice and say all those functions are just conversions to signed/unsigned data types and are unrelated to actual implementation.
Butko
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Post by Butko »

Well my plan is not to reverse engineer server. I would make independant offline version of game just for learning and kinda sandbox where you can learn stuff, like combat and so on...
themendios
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: Offline play

Post by themendios »

Butko wrote:Well my plan is not to reverse engineer server. I would make independant offline version of game just for learning and kinda sandbox where you can learn stuff, like combat and so on...
You haven't thought this through then, you would need to replicate the server logic if not the traffic (if you don't rewire the network functions) in order to do anything other than display a static screen.

I mean sure you can give it map data fairly easily but combat resolution etc? That's not something you can just fake on the fly, there's a large series of data transfers going on there and there is a hidden (to you) logic portion driving the majority of it.
Butko
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Post by Butko »

First of all I need to make basic things:
character animations and rendering all gear.
tileset rendering,
map generator

After that I can start placing objects and make character to interact with them. And after I make all objects and basic play logic then it's a time for animals, NPC's and combat. :) That was my plan, but I'm currently stuck with number 1.
themendios
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: Offline play

Post by themendios »

Butko wrote:First of all I need to make basic things:
character animations and rendering all gear.
tileset rendering,
map generator

After that I can start placing objects and make character to interact with them. And after I make all objects and basic play logic then it's a time for animals, NPC's and combat. :) That was my plan, but I'm currently stuck with number 1.
I am still working my way through the code but I think you are vastly underestimating the amount of work needed.

First you have to understand the netcode, where it goes (all over the place), what the values mean etc etc. Then you have to decide if you want to hook that or recreate them.
User avatar
Mopstar
Posts: 446
Joined: Wed Dec 02, 2009 6:03 pm

Re: Offline play

Post by Mopstar »

ravenguard19 wrote:Maybe jorb or loftar will say something?
plz we will not sell any part of source code
or hmm maybe jorb and loftar can make single player version of H&H?
its will be awesome
u can sell single player version just like minecraft and earn a lot of cash
i dont want to live in this world anymore
Wolfang wrote:
+1 I don't know how he did it, but Mopstar did steal his own stuff. You have to be a pretty hardcore thief to be able to steal your own things!

Return to “Critique & Ideas”