Jump to content
Sign In to follow this  
citycowboy

Multiplayer SC4

9 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I was looking at Sabretooth's awesome new CJ, and he had mentioned breaking his region up into 2-3 pieces. I immediately thought, 'send me a chunk'. Then I began thinking about multiplayer SC4, and how it could be done. Maybe somebody else already figured it out. Everybody would have the same map, the same plugins, and then they would have to email everything to one another, and everyone could each have a tile or ten, build their best city, and then email that all together and everyone would make an awesome CJ. I think you can plug and play the cities in the region folder If I'm not mistaken. Does anybody know if this can be done? What do you guys think? Everyone would have to work together and commit to it, but I think it can be done. 

I was already thinking about (and working on) organizing all the plugins I have by date, so like all the 1850-1900 buildings in one pack, all the 1900-1950 buildings in another, etc. There would be like a rule that you can only use this plugin pack and click Chicago 1890 tileset, and only use the spam dirt roads. You can do whatever you want on your tiles, but when you get to a certain date or population, you have to stop. Then everybody would email back and forth and we'd all be synchronized and calibrated, and then we'd show the world. After that, then the different cities would be dealing with one another, so to speak, and this would effect commerce and trade, taxes, job demand, etc. Then, you would be allowed to use the next plugin pack, and click new york 1940, etc.

Of course there'd be lots of rules and stuff, but if millions of people can figure out how to make fantasy football work, this could be done too. 

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Some efforts have been expended in this regard, and seem to come and go with limited success.  The basic problem is that this is a single player game and does not easily allow more than one user at a time.  There is no code in the game that handles simultaneous access to the writable tables and protects them from deadly embraces.  At best you might be able to have a common region with users in different cities, but it basically means writing a queueing manager to handle the multiple users if you want concurrent access.

I've done some serious work in business transaction processing which allowed thousands of users to simultaneously access a common data base.  This is not simple and is very much like writing an operating system that allows time-sharing access.  The biggest problem is the necessary code to detect and amend multiple writers in the same resource.  This involves rollbacks, race conditions and deadly embrace avoidance.  You have to be able to get an atomic result for each action that takes place, and assure that its integrity is preserved.  To make this work without undue delays for the end users, you pretty much have to have your data base on an SSD, with full journalization on a different (rotating or tape) device.  With rotating storage you have to be able to handle journal-full spills to yet another device, usually magnetic tape.  Rather a huge can of worms unless your original intent is MMP.  Crash recovery is also a major issue, as it normally has to be done by restoring the last checkpoint then running forward from the journals.  This can take the application off the air for some time.  To make this kind of thing happen you generally have to have some very fancy servers or even a main frame.


  Edited by A Nonny Moose  

Clarification

Beware: Emancipated user.  No Windoze for me.
The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
If you always do what you've always done, you'll mostly get what you've always got.
JohnNewSig.gif
"We have met the enemy, and he is us" - Walt Kelly

Come join us at the Moose Factory

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Yeah, that all sounds complicated. I was thinking more plug and play where let's say we keep it simple and have two players. the region has 3 tiles:

    A  B  C

    Player 1 = Tile A

    Player 2 = Tile C

    Commissioner = Tile B

    Both players have the same plugins and map, but can only play on their tile.. At the end of the week, both players email their city tile from the regions folder to the commissioner, and the commissioner emails the other city files back, with the commissioner connecting any roads, etc. through Farmville.

    Is this possible?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Possibly not, from what I understand it's not a good idea to edit two cities that border each other, when you compile the region once more because of the way neighbour connections/demand work that can have negative effects.

    The other problem I see is regarding the plugins folder, it's against the rules to re-distribute the work of others. It's therefore not enough to simply create one set of plugins. Rather you'd need to know exactly which plugins you had considered OK for use in the region, making sure users kept these synchronised with each other.

    The concept can and does work though, others have taken this path before, the most active I know of is the Noro Cooperative on SC4D right now. It does require a semblance of commitment from the other players though, I suspect that would be the largest problem more so than administrating the details.


    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    yeah, long term cooperation is something I've noticed doesn't work very well. I think I'll get some more copies of the game from Amazon and try it myself first on different computers back and forth and see if it works. This will probably take a long time. 

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    You don't need more copies of the game.  Just create multiple accounts on your machine, and if you want, allow remote logins from some other users of those accounts.  All operating systems worthy of the name these days allow multiple users, each with his own account.  A little adroit sharing of a master account and you can have a single region with one set of plugins used by everyone.  This becomes a matter of setting permissions on the city files and the region.

    The main fly in this ointment is you have to be a pretty good system administrator and sysop, and you have to keep your machine up 24/7 with scheduled backups.

    You may not even need a bigger machine than the one you have now.

    I haven't run Windows in a long time (since XP), but it was possible even then.  On my current Linux system, it is a piece of cake.


      Edited by A Nonny Moose  

    grammar fix
    • Like 1

    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Oh awesome, I hadn't thought of that. That's easy. I haven't had to deal with shared computers since the 'computer lab' days in school. Awesome, you're a lifesaver. I literally was going to buy SC4 for like 5 different computers. Thats like $100. Awesome.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Good luck with this.  You'll really need to understand the file system and the way that sharing works.  Not many people have more than one account on a machine these days.  Probably never occurs to them.

    One of the problems with systems these days that are shared by family members, for example, is that they all share one account.  This can make for a lot of acrimony about who did what to which and to whom when something gets messed up.  Every person who uses a common computer must have his own account and password.


    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Yes we have done this several times in the past, there was a city journal long ago of 1 attempt, it requires everyone agree to a common plugin dir and then all you have to do is share the city files, but active participation is a must and it is best to have a 'moderator' collect all the files at an agreed upon time, load them all up in game, then send them back out to players (rinse/repeat).

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account

    Sign In to follow this  

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections