Offline play

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Re: Offline play

Postby loftar » Thu Feb 17, 2011 4:45 pm

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
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Offline play

Postby Butko » Thu Feb 17, 2011 6:51 pm

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 :)
Butko
 
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Postby loftar » Thu Feb 17, 2011 8:39 pm

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
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Offline play

Postby Butko » Fri Feb 18, 2011 5:03 pm

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.
Butko
 
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Postby themendios » Fri Feb 18, 2011 6:34 pm

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.
themendios
 
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: Offline play

Postby Butko » Fri Feb 18, 2011 8:44 pm

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...
Butko
 
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Postby themendios » Fri Feb 18, 2011 8:50 pm

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.
themendios
 
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: Offline play

Postby Butko » Fri Feb 18, 2011 9:45 pm

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.
Butko
 
Posts: 542
Joined: Tue Sep 07, 2010 10:05 am

Re: Offline play

Postby themendios » Fri Feb 18, 2011 10:16 pm

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.
themendios
 
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: Offline play

Postby Mopstar » Thu Mar 03, 2011 7:14 pm

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!
User avatar
Mopstar
 
Posts: 445
Joined: Wed Dec 02, 2009 6:03 pm

PreviousNext

Return to Critique & Ideas

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests