Mythruna

General Category => Tech Support => Topic started by: G1ZMO on October 28, 2012, 06:41:01 AM



Title: Saving and SP and MP
Post by: G1ZMO on October 28, 2012, 06:41:01 AM
I realise that the single player map is saved automatically on exit but is there any way to change the map which is in use?

The reason for asking is that my son (7yo) has spent a lot of making buildings etc and I wanted to be able to back up his world in case it got corrupted or spoiled by another user.

Secondly, does the multiplayer mode (if run on the same machine) use the same map? if not, can I make it do so?

Is there a manual for the commands? I can get into 'G'ame mode but don't know what to do :)

Thanks

Paul


Title: Re: Saving and SP and MP
Post by: Iggyjeckel on October 28, 2012, 07:11:56 AM
Game mode diesnt do much right now, mainly its there for modders

There are multiple seeds that you can start when playing single player

As for multiple player games, have you kid set propert


Title: Re: Saving and SP and MP
Post by: Iggyjeckel on October 28, 2012, 07:40:16 AM
Ok sorry for short response, I was packing kids up and had to type fast.


With single player you can choose from 100 different world seeds. To do this now is more difficult then it will when alpha comes out, so if you are looking for how to do it....its somewhere in the forums

With the public server multi player, it is set to one world. I believe if you create your own server then you will be able to choose the seed.

To stop griefing from other players paul had set up something called "properties" with these properties in place the only people able to edit anything within that persons property are them, and whomever they give a badge to

Hope this answers your question


Title: Re: Saving and SP and MP
Post by: Michael on October 28, 2012, 07:56:28 AM
Quote
I realise that the single player map is saved automatically on exit but is there any way to change the map which is in use?
If you use windows, I can help :)
For single player changing map/backing up, follow these directions:

1.) go to saved location (I have mine in my documents)
2.) then to save the world, copy "mythruna.db" that is where all of the things are.

Hope it helped. You can save that on a flash drive or copy it to another location.
to change the seed, open up world-info.json with a text editor, and change the seed from 0-100 :) hope you enjoy!


Title: Re: Saving and SP and MP
Post by: pspeed on October 28, 2012, 12:20:29 PM
As others have pointed out, the mythruna.db directory is where your world is saved.  If you create a stand-alone server, you can simply copy this directory over to it and use it for the server world.  There is no difference between a server world and a single player world, data structure-wise.

The others have talked about changing the world seed (you can change it to any of 2147483648 values, actually)... but I'm not sure that was actually what you were asking.  Changing the world seed would invalidate any stuff you've built already since the entire terrain totally changes.  The parts wouldn't match up right anymore.


Title: Re: Saving and SP and MP
Post by: pspeed on October 28, 2012, 12:21:20 PM
Oh, and regarding a "manual"... there is the help in-game.  Press F1.  I don't know if you found it already so I thought I'd mention it.  The others are right about game mode... without mods it doesn't do anything right now.


Title: Re: Saving and SP and MP
Post by: Michael on October 28, 2012, 01:17:10 PM
I forgot about F1 xP


Title: Re: Saving and SP and MP
Post by: G1ZMO on October 28, 2012, 01:40:26 PM
Thanks folks,

Unnaturallife: No, I'm not using windows (I'm on Ubuntu) but I've now backed up the db file

Paul: I hadn’t realised that the world was generated based on a seed number. I get it now :)

My question about the manual was really for things like properties, stronghold and badges, can't find any reference to their usage.

If Game mode does nothing yet, is the only server mode 'build'? If so, what is the point of multiplayer or is it just that MP gaming options are in future releases?

p.s. an 'undo' key would be fantastic :)
p.p.s. so would the ability to rebind keys (son is finding 'wasd' awkward)

Thanks

Paul






Title: Re: Saving and SP and MP
Post by: Iggyjeckel on October 28, 2012, 01:56:51 PM
I believe keybinding will be released later, no option yet (that I know of)

I have created a table of contents on this forum. It has many (ok not to many yet) links to important topics like properties

Anf the server that is set for multiplayer now is just a build. When game goes alpha I believe paul will start a new server with real rpg aspects


Title: Re: Saving and SP and MP
Post by: Michael on October 28, 2012, 02:03:45 PM
I believe keybinding will be released later, no option yet (that I know of)

I have created a table of contents on this forum. It has many (ok not to many yet) links to important topics like properties

Anf the server that is set for multiplayer now is just a build. When game goes alpha I believe paul will start a new server with real rpg aspects
Yes he will. Remember: 2 versions "Free" "Paid". he has said he would make a new server for the RPG. lol i remembered something :D


Title: Re: Saving and SP and MP
Post by: pspeed on October 28, 2012, 04:37:33 PM
Thanks folks,

Unnaturallife: No, I'm not using windows (I'm on Ubuntu) but I've now backed up the db file

Paul: I hadn’t realised that the world was generated based on a seed number. I get it now :)

My question about the manual was really for things like properties, stronghold and badges, can't find any reference to their usage.

Properties are really for multiplayer.  They are ways to protect sections of the world.  Badges are ways to let other people edit in your property... a way to collaborate and still have overall protection at the same time.

If Game mode does nothing yet, is the only server mode 'build'? If so, what is the point of multiplayer or is it just that MP gaming options are in future releases?

Yes, just building for now.  Building in multiplayer is fun.  Why build in single player when you can collaborate? :)

p.s. an 'undo' key would be fantastic :)

Heheh.  Not going to happen.  :)  In a server, you can branch and revert the world (it's branched automatically at midnight).  Which at least gives some possibility of taking parts of the world back to a previous state.  It's pretty coarse grained and mostly meant to repair griefing.

p.p.s. so would the ability to rebind keys (son is finding 'wasd' awkward)

No way to remap right now.  My kids struggled with Minecraft and I'd always remap the keys for them but ultimately I made them learn mouse look and WASD.  I was tired of watching them struggle with the "simplest" things (to me). :)  My (at the time) 6 year old was getting pretty good at it before this extra computer up here died.

In the next version, you'll be able to remap keys through a mod script.  An actual UI for remapping keys will be much much later, I think.


Title: Re: Saving and SP and MP
Post by: Michael on October 29, 2012, 01:50:14 PM
once you get used to the keys, its pretty straight forward.
I use a laptop (as many know) and i use WASD to walk, and the arrow keys to look.


Title: Re: Saving and SP and MP
Post by: G1ZMO on October 29, 2012, 03:04:39 PM
I've upgraded the old ATi card on my wife's pc so that my son can play on that one on multiplayer with me :)

Copied the database to the server folder and confirmed that his buildings are all present and correct.

I'll set up a cronjob to copy his singleplayer modified db across to the server so that we can then start to work together when I get in from work

Cheers

Paul

p.s. Had to create new users on the server to get logged on though. Where are the users stored (so that I can purge out the old ones)


Title: Re: Saving and SP and MP
Post by: pspeed on October 29, 2012, 05:29:26 PM
I've upgraded the old ATi card on my wife's pc so that my son can play on that one on multiplayer with me :)

Copied the database to the server folder and confirmed that his buildings are all present and correct.

I'll set up a cronjob to copy his singleplayer modified db across to the server so that we can then start to work together when I get in from work

Cheers

Paul

p.s. Had to create new users on the server to get logged on though. Where are the users stored (so that I can purge out the old ones)

In mythruna.db/users... but there is no compelling reason to remove users.  They don't take up much space.  You have to both remove the individual user files and the reference in the index or you mess things up.  And there is no way to purge the entity database of specific users.

Also, the single player user is not represented in the multiplayer user db.


Title: Re: Saving and SP and MP
Post by: Michael on October 30, 2012, 02:10:14 PM
the database (db) for the multiplayer is saved on Paul's computer, I believe.


Title: Re: Saving and SP and MP
Post by: pspeed on October 30, 2012, 03:25:34 PM
the database (db) for the multiplayer is saved on Paul's computer, I believe.

Depends on the server.  MY server's database is stored on my computer.  HIS server's database will be stored on his computer.  And so on.


Title: Re: Saving and SP and MP
Post by: G1ZMO on November 01, 2012, 03:35:46 AM
What I've done is created a script that copies my sons singleplayer database to my machine into the server directory so that any changes he has made in SP mode are still there when I get back from work to play MP with him

Then when we finish MP mode I copy the database from the server to his machine again so that the changes made in MP mode are in his SP version for the next time he plays it.

Seems to work fine :)

I do wish I had a teleport though lol

Paul


Title: Re: Saving and SP and MP
Post by: pspeed on November 01, 2012, 09:48:28 AM
What I've done is created a script that copies my sons singleplayer database to my machine into the server directory so that any changes he has made in SP mode are still there when I get back from work to play MP with him

Then when we finish MP mode I copy the database from the server to his machine again so that the changes made in MP mode are in his SP version for the next time he plays it.

Seems to work fine :)

I do wish I had a teleport though lol

Paul

A teleport script is not hard to write.  Maybe I'll post one later.


Title: Re: Saving and SP and MP
Post by: Michael on November 01, 2012, 01:33:04 PM
can I guess of the script! lol i know I am going to fail:
Code:
// just leading from a Command class
import java.util.Scanner;

new commandTeleport(x, y, z) {
if (user >= commandTeleport(x, y, z)) {
} }
new Scanner i = new Scanner(System.in);
Lol i cannot think of anything else, but I got the scanner in :)


Title: Re: Saving and SP and MP
Post by: pspeed on November 01, 2012, 01:34:41 PM
can I guess of the script! lol i know I am going to fail:
Code:
// just leading from a Command class
import java.util.Scanner;

new commandTeleport(x, y, z) {
if (user >= commandTeleport(x, y, z)) {
} }
new Scanner i = new Scanner(System.in);
Lol i cannot think of anything else, but I got the scanner in :)

Why bother posting something that you know can't possibly be even remotely correct?  You haven't even once looked at the APIs or if you have then you've completely forgotten it.


Title: Re: Saving and SP and MP
Post by: Michael on November 01, 2012, 01:35:08 PM
im still a newb x(