Scores in TS10

celje

New member
I was testing the possibilities for counting. I wish that any delivery at industry get scores. The best solution would be count the quantity of products.
We have three rules for activating the score system, variable show, variable check and variable modify.
I was using this setting:
variable show
rule(1)
-variable check
-variable modify

(- is child)

For rule(1) i tried with Resource check, Resource verify, Multiple resource check and Station visited check rule. Not work.
The only solution which work, is put in trigger at industry and use trigger check rule. With this you get score for every visit at Industry. Very poor solution:'(.

Of course it's possible that i don't know enough about this rules. Does anyone know the better solution?

regards

celje
 
I see no point in having a "score" on this simulation.

If I want to ba able to run up a "score". I'll go out and buy a "game".

Doug
 
Yes it might be.
Think this way. How we finish the session, by using the time and next solution is, by reaching the scores.
 
Yes it might be.
Think this way. How we finish the session, by using the time and next solution is, by reaching the scores.

I agree.

But this game can work well in 2 distinct approaches.

CMTM (Car Movement and Traffic Management) see http://forums.auran.com/trainz/showthread.php?t=63006. From what I've seen this looks great for the hard core prototypical Trainzer.

This game is also be able to shine in a more simple "achieve a goal gain some points/money" approach.

Gimme a few days, I think I can put together an (albeit simple) example of a points oriented session.
 
Hello William

Dap made very good CMTM solution, but he use the cabin mode approach, which i don't like it.
I'm working now on the session where i wish to implement scores for AI trains. All the time i miss something in TS, informations. We run manually or AI trains, but we don't know what was done in e.g. 1,2,3 hours, how much products are delivered, how much still must be done to satisfy the consumer. Marzipan made some rules, Display industry status, Display Train list and Product Queue scoring but they show only percents and not quantity. Weybills are not enough too. We need some kind of general statistics which wiil connect all this partial informations, and it would be all the time in the screen. Just looking AI or driving in cabin is not enough,.... and then they said, that is boring.

regards

celje
 
Last edited:
I was testing the possibilities for counting. I wish that any delivery at industry get scores. The best solution would be count the quantity of products.

... which is exactly how it is done in several of the built-in TS2010 sessions.

Firstly, let's configure and display a variable.
* Add the "display custom HUD" rule to the session.
* Add a "variable modify" rule (configured to set a named variable to zero).
* Add a "variable show" rule (configured to show said variable).

Now when we start the session, we should see a new element in the HUD - an entry for a scoring variable, set to zero.

* Set up the industry you want to check so it starts with none of the relevant product, and does not consume it - just stockpiles it. This is the queue we will measure.

* Add a "resource check" rule to your session. Point it at the relevant queue, product, and industry - the one we set up in the previous step.

* Work out how much cargo you want delivered, and configure the rule to complete when the queue goes above that amount. (Start with a small amount for testing, and bump it up later, once you know the rules are working).

* Add a rule that will do something as a child of the resource check rule. For now, use a "variable modify" rule. Configure it to add some specific number of points to the score variable you showed earlier.

This last rule is a child - and needs to be put underneath the parent rule, and indented one to the right.

Now drive the session. When you deliver the correct amount of cargo to the industry, you should see the score go up by the amount you said.

Repeat this process for a number of different industries, so the score will build up as the player satisfies each industry.

Now to tell the player they've completed the session:

* Work out what the score will be when all the industries are satisfied

* Add a "variable check" rule. Configure it to check the score variable is greater than or equal to the value you worked out, and to check every second.

* Add a "display HTML" rule as a child of the variable check rule. Configure this to show a 'session complete' page (provided as a separate HTML asset).

If you want to do several things at the child level (e.g. display HTML, and mark the session as complete in the achievements system), then you'll need to use one of the 'list' types - either an "ordered list" (do each one of these things in sequence, waiting for them to complete in turn) or a "simultaneous list" (do all of them in parallel).

This setup is fairly basic. It won't penalise speeding or passing red lights (rules are available for checking each of these conditions), and it doesn't cover returning vehicles to specific places - for that you'll want to use trigger checks. Have a look at the default sessions to work out how individual things are done.

HTH
 
James_Moody

Thank you very very much for your help. I will try it this days.

thank's again

regards
celje
 
Hello again
First of all i must congratulate you for very good public relations last days. I know it's not a good work, but it must be done for good relationship.
I was very pleasant surprised when i saw your answer on my dilemma.

I must apologize, it seems that we don't understand each other.

Your combination of rule
variable modify
variable show
resource check
-variable modify

and my combination
variable show
trigger check rule
-variable check
-variable modify

both work, but are not good enough.

Example:
train has 20 items on wagons, industry consume 256 items

If i set amount in Resource check to 19 then scores wiil be done at first unload, if i set amount to 256, then scores will be shown only after 13 unload.
In my combination new scores are shown after every unload.

I'm searching for solution, that we get new additional scores after every unload. The best solution would be, counting the quantity of products(items) and not the scores and some kind of popup menu with informations (e.g. industry XX....20/256, this mean 2o item are delivered from all 256 needed).
I think that then the session would be more interesting.

regards
celje
 
Hello

I had a look at the default sessions and i didn't find solution for AI trains, so i made this combination which work without problem:

Display Custom HUD
Variable show
Multiple Trigger Check
-Variable modify
-Ordered List
--Variable Check
---Display HTML
---Drive Schedule rule
---Session Complete rule

For this combination you must have trigger at industry. Every unload at industry is measured.

My words above about scoring still remains, i think that we must have much more statistics data on the screen.

regards
celje
 
I was searching for this thread almost three hours, search button is not from big help, i finaly succeed by observing all threads in TS12 and TS10, so i bump this thread for later use.
 
Back
Top