multiple instances

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
kav
Posts: 14
Joined: December 20th, 2006, 6:37 pm

multiple instances

Post by kav »

How does wesnoth respond to running multiple instances and playing 2 games at the same time? Would that be possible?
User avatar
Viliam
Translator
Posts: 1341
Joined: January 30th, 2004, 11:07 am
Location: Bratislava, Slovakia
Contact:

Post by Viliam »

Yes, you can do this!

I started Wesnoth twice, connected to internet server (must choose 2 different user names), and played a short game against my other self. ;-)

But playing in one window in "hotseat" mode is much easier...
commanderkeen
Posts: 183
Joined: November 16th, 2006, 6:41 am
Location: In your browser cache!
Contact:

Post by commanderkeen »

I did it so I could do all this at once:

Browse Wesnoth 1.0.2 lobby
Browse Wesnoth Development lobby
Download a 1.0.2 campaign
Download a Dev server campaign

4 instances running from two folders. (wesnothstable and wesnoth1.1.13)

WARNING: do not try this at home unless you have over 1gb ram!
Hypocritical note: I had 256mb ram :oops:
Fiach Dubh
Posts: 381
Joined: December 2nd, 2006, 4:10 am
Location: Thar an scáthán

Post by Fiach Dubh »

Multiple instances are useful for testing stuff in MP - the data still runs through the server, so it can pick up on OOS errors that won't occur in hotseat play.
Jetryl wrote:Normal people are like candy ravers. You look away for a moment and next thing you know they're spreading vaseline on your nipples and cooing like a pigeon.
kav
Posts: 14
Joined: December 20th, 2006, 6:37 pm

Post by kav »

t3h awesomeness

Now for the hard question.

How do you install multiple versions? (stable,dev,older)
Assuming you compiled them from source in linux, do you just change a variable or install folder somewhere in configure or make or something?

For that matter what happens when I install a new version? Does it remove the old one automatically, or has it been overwriting as necessary leaving old junk in /usr since 0. some odd 9?
Fiach Dubh
Posts: 381
Joined: December 2nd, 2006, 4:10 am
Location: Thar an scáthán

Post by Fiach Dubh »

If you install to the same location as an older version, all 'core' files (not downloaded add-ons or stuff you made yourself) will be overwritten with the new version.

If you install to a different location, there's no overlap between the two versions so nothing is deleted or overwritten. This applies whether you have two different versions, or two copies of the same reason (useful if you want to modify game files, but then still want to be able to play after you f*** it up!)

My hard-drive currently has one copy of 1.0.2 (I use some of the old sprites when creating new ones), one copy of 1.1.11 (haven't gotten around to deleting it yet!) and two copies of 1.1.13 (one left exactly as I downloaded it, and the other with various things modified for 'testing' purposes). No installation of Wesnoth should conflict or interfere with any separate installation, you can even run multiple instances of different versions - just remember to clearly label which shortcut is which!
Jetryl wrote:Normal people are like candy ravers. You look away for a moment and next thing you know they're spreading vaseline on your nipples and cooing like a pigeon.
Soliton
Site Administrator
Posts: 1733
Joined: April 5th, 2005, 3:25 pm
Location: #wesnoth-mp

Post by Soliton »

kav wrote:How do you install multiple versions? (stable,dev,older)
Assuming you compiled them from source in linux, do you just change a variable or install make or something?
Use ./configure --prefix=...
See ./configure --help for more options.
kav wrote:For that matter what happens when I install a new version? Does it remove the old one automatically, or has it been overwriting as necessary leaving old junk in /usr since 0. some odd 9?
"make install" just installs the current version, meaning nothing is removed beforehand and not everything may get overwritten in the process.
"If gameplay requires it, they can be made to live on Venus." -- scott
kav
Posts: 14
Joined: December 20th, 2006, 6:37 pm

Post by kav »

Well I just had a look through the directory, it's only about 100M so I'm not to worried about pileing up different versions ontop one another.

The information about different and duplicate versions will be usefull for both having stable and dev versions installed, and for dicking around with as well. Running multiple instances will also be quite beneficial.

Thanks a lot guys
Post Reply