News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Collaborative game site

Started by Nathan Samson, June 14, 2009, 10:43:48 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Are you going to use simutrans collaborative game website?

Yes, and I want to beta test it too
7 (19.4%)
Yes
9 (25%)
No
2 (5.6%)
Maybe
18 (50%)

Total Members Voted: 34

Voting closed: July 14, 2009, 10:51:04 AM

prissi

Since only same versions (that most likely will include same release number!) would be compatible on network games. Otherwise convois will be arriving in different order and so on. But same versions of SE could work too, if you have not used the random counter in the worng places ...

jamespetts

Ahh, yes, I realise that people playing Simutrans-Experimental could not join a game of people playing Simutrans-Standard, and vice versa. Where would be the wrong places to use the random number counter, may I ask? Simutrans-Experimental does use it in one or two places (mainly relating to passenger routing in the step_passiagere() method in simcity.cc) where it is not used in Simutrans-Standard.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

gerw

It should be save, to use the random counter in the step-functions, but not in the sync_steps.

jamespetts

Gerw,

thank you very much for that advice :-) Should be all right, then.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

It will be also save to use it in the sync_step, since otherwise city cars could not drive around ...

jamespetts

Ah, thank you. Where should I avoid using it?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

You should avoid any call to a time function in the program. Only use int_check and the cooperative mechanism will do fine. It will run similar to fast forward mode, i.e. with a predefined time per sync_step, no matter waht actual time was spend. If you have routines, that take very long, it will block the progress of the program during that time. (THus I fear this will have problems when constantly schedule updates are needed, because ten people simulataniously update their networks.)

But I would actually wait for the implementation of that. Currently synchronising is not working yet.

gerw

Quote from: prissi on July 08, 2009, 11:16:27 AM
THus I fear this will have problems when constantly schedule updates are needed, because ten people simulataniously update their networks.
For this one could maybe use distributed computing. So every player reroutes only his goods and the information is distributed afterwards (=> higher network traffic but less computation time). This could also work for the routing of convoys. But this is maybe difficult to implement.

jamespetts

Prissi,

what do you mean by "time functions" here? Do you mean functions that get a time value? Simutrans-Experimetnal does use those functions to determine how long that goods/passengers have been waiting, and also to measure average speed. Would this go wrong with the network mode? Would it be possible for the method to check the time from the server? If so, how would that be affected by ping times? (Would one, perhaps, call the time from the server, then ping the server thrice, and deduct the average of the three pings from the time - or would that put too much strain on the network?) I should very much appreciate views on how to make the time-related functions in Simutrans-Experimental network compatible.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

I would always use ticks. THose are save. All other means will fail when speeding a game up or so.

jamespetts

Ahh, I use ticks in any case. Thank you for the information :-)
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Matthi205

Thank you,Igor!You made what I wanted!(In some way you don't understand) ;D
The Green Mage of Darkness living in the summer hell and in the country where it snows till May with -21 *C  ;D