News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Scenarios

Started by Dwachs, July 30, 2009, 08:17:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dwachs

I really like the effort that is put into the presented scenarios and savegames on the forum. However, simtrans lacks the capability to handle scenarios flexibly.

I thought of adding support of scenarios configurable in xml.

So here is an invitation to do a brainstorming. What would you like to see included?

Winning conditions, losing conditions, extra restrictions (no terraforming, no deletion of houses), special vehicles (only a subset of pak vehicles allowed, vehicles provided by scenario), events etc.




Disclaimer: Nothing will be done overnight. No promises.

No ingame editor (maybe at later stage): editing the xml-file with a text editor and reloading in simutrans should be enough for the moment.

No scripting (lua etc - maybe later): simply due to the sheer amount of work connected with that.
Parsley, sage, rosemary, and maggikraut.

vilvoh

My two cents:

  • Triggers: If player income reaches to 2k million increase the cost by 2.
  • Time limit: Years or hours of gameplay, then lock the scenario.
  • The possibility of setting up winning zones. You can define an area and the goals to meet there. i.e. Increase the populations from southern cities and build a hub that attracts 20% of the transported goods.

I guess triggers implementation would need some kind of scripting, but perhaps we may find another way to carry out this, defining most common triggers.

Escala Real...a blog about Simutrans in Spanish...

Severous

Hi.

I think of scenarios as :

- a predefined map having objective(s) to be meet before a certain date. 

- Scenario can be replayed and sent to other players as a file.  Players can compare how they did knowing they had the same map and conditions as each other. Can swap posts in forum comparing tactics and pictures.

- Scenario win/loose message and means of tracking scenarios played and results achieved. Big 'in your face' window popping up to say 'well done'.

- objectives can be any or combination of: volume of specific cargo transported, net wealth, profit. (whatever simutrans can track easily)

- Small amount of scenario text to tell player of scenario conditions and objectives.

Whilst not essential I like restrictions on vehicles available. To force a certain type of scenario play.
- restricting vehicles to be used. By type (e.g road vehicles only) or individual vehicles (only 2 types of bus available from normal 6)

Whats on the map?  Would there be any control over the placement and composition of industry on the map?  Somehow do we use the public player to edit the map/industry then save/start the scenario?

I hadn't thought of triggers. But they could be very useful.  Like in a Rhur scenario we might have triggers that caused change to coal/iron/steel industry. Alternatively the scenario had altered weighting for spawning of such industry making change more likely/frequent.
Regards
Sev.

Dwachs

Thank you for you input!
Quote from: Severous on July 30, 2009, 12:12:03 PM
- Scenario can be replayed and sent to other players as a file.  Players can compare how they did knowing they had the same map and conditions as each other. Can swap posts in forum comparing tactics and pictures.
I do not understand. Is this a definition of scenario or a special request? At least it matches my own understanding of a scenario (fixed map, fixed conditions).

Quote
Whats on the map?  Would there be any control over the placement and composition of industry on the map?  Somehow do we use the public player to edit the map/industry then save/start the scenario?
I think, a scenario consists of (a) savegame and (b) additional file(s) describing the scenario. As of (a), one has to use public service beforehand to establish all the wished infrastructure like in the Arena board here on the forum. I also imagine the possibility to provide a height map and additional information, where to place cities, rivers etc, to make pak-independent scenarios.

In simutrans there is already a button 'load scenario' that looks in pakxx/scenario to load one. My idea is to use this option and develop it further.
Parsley, sage, rosemary, and maggikraut.

Michael 'Cruzer'

XML? I think this is a great idea!

_____________________________________


Do you think of something like that?
<?xml version="1.0">
<scenario>
<task min_money="10000000">This is the message when you slove this task!</task>
<task min_vehicles="100" />
<!-- The attributs of 'task' means are the requierments for sloving this task.
Like 'min_money="10000000"' means that player must have 10000000 or more. -->

<!-- A more complex taks: -->
<task min_money="10000000" min_vehicle="100" max_time="10000">Here the message?</task>
</scenario>
Founder and Ex-Maintainer of pak192.comic. Provider of Simutrans Hosting rental service.

Dwachs

yes, or something like that:

<scenario>
<general>
<ends time="1.1.1980"/>
<file name="test.sve"/>
<message>
Welcome! 
</message>
</general>
<win>
<condition>
<cash comp="more than" value="1000000"/>
</condition>
<message>
You won!
</message>
</win>
<lose>
<condition>
<cash comp="less than" value="0"/>
</condition>
<message>
Wadda loser!
</message>
</lose>
</scenario>
Parsley, sage, rosemary, and maggikraut.

Michael 'Cruzer'

Quote from: Dwachs on July 30, 2009, 01:33:16 PM
yes, or something like that:

That sounds great. I hope that you find time to make it.
Founder and Ex-Maintainer of pak192.comic. Provider of Simutrans Hosting rental service.

Isaac Eiland-Hall

Just a small note as I'm limited on time: I hope you get inspired by Railroad Tycoon II - I realize much of that system would be too complex, but imho, it was a really really great system for scenarios... :)

Severous

#8
My most played games of this type were Railroad Tycoon2 and Locomotion.  

Both had excellent scenario building features.  RRT2 had triggers that could take you from one objective to another.  One I most remember unlocked progressively more of the map as you met certain interim objectives.

I will add a few Locomotion screenshots ive got stashed away somewhere....

Edit1:
http://homepage.ntlworld.com/steven.meale/Rails%20and%20Roads.PNG
http://homepage.ntlworld.com/steven.meale/name%20with%20date.PNG
http://homepage.ntlworld.com/steven.meale/Oil%20Oasis%20win.JPG

Sadly I cant find any screens of the actual scenario creation options.


Question..how many have played the scenarios that come with Simutrans..know that they differ between pak64 and pak128 (despite the same names)..and kept the saves?
Regards
Sev.

AP

Quote from: vilvoh on July 30, 2009, 09:52:01 AM
If player income reaches to 2k million increase the cost by 2.
Or "engage price inflation at n%/yr"

Michael 'Cruzer'

I think such complex stuff isn't needed!
The system from Dwachs is big enough.

@Dwachs: If you make your system, please also make a Scenario Name Attribute, because showing the file name doesn't looks very nice in scenario.
Founder and Ex-Maintainer of pak192.comic. Provider of Simutrans Hosting rental service.

Dwachs

I got inspired by the game Wesnoth www.wesnoth.org, there the scenarios and campaigns are described by some kind of macro language, which is somehow similar to xml, see http://www.wesnoth.org/wiki/ReferenceWML. There you can see, how complex everything can get. But also, what one can achieve without a scripting engine.
Parsley, sage, rosemary, and maggikraut.

VS

Ohhhhh dear. WML attacks!

Would it be possible to load/activate additional paks just for the scenario?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Dwachs

why not, if anyone implements it  ::)
Parsley, sage, rosemary, and maggikraut.