Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Jul 21, 2018 11:11 pm

All times are UTC




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Highway Toll Game Script
PostPosted: Mon Feb 26, 2018 11:00 am 
Offline
Engineer
Engineer

Joined: Fri Dec 16, 2016 2:11 pm
Posts: 12
Hi. I just finished my first game script.

http://binaries.openttd.org/bananas/gam ... l-1.tar.gz

This GS works only in multiplayer. The company has to pay road tax for cars driving on roads owned by other companies. Every day for each vehicle, the charge is deducted from the company account and credited to the account of the company owning the road.


Top
   
PostPosted: Mon Feb 26, 2018 2:25 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1055
Location: Courbevoie, near Paris, France
Great ! Too bad it doesn't applicate to sections we choose - it'd be good to have tolled roads, but that's for a patch.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Mon Feb 26, 2018 3:34 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 89
Location: Czech Republic
Super Script! But for your script stored on the Bananas server, it would be good to set the URL referencing the discussion in this forum.

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Tue Feb 27, 2018 5:38 am 
Offline
Engineer
Engineer

Joined: Fri Dec 16, 2016 2:11 pm
Posts: 12
agentw4b wrote:
Super Script! But for your script stored on the Bananas server, it would be good to set the URL referencing the discussion in this forum.


Thanks, updated


Top
   
PostPosted: Tue Feb 27, 2018 5:51 am 
Offline
Engineer
Engineer

Joined: Fri Dec 16, 2016 2:11 pm
Posts: 12
acs121 wrote:
Great ! Too bad it doesn't applicate to sections we choose - it'd be good to have tolled roads, but that's for a patch.


Hi, I'll look at it. It should be done through toll gates. The entrance or exit of the highway could be marked with a sign, even with a price, and if the car was passing through the gate, it would have to pay.

Edit: The possibility of a price change could be dangerous. The player may raise the price just before the car passes.


Attachments:
highwaytoll.JPG [209.67 KiB]
Not downloaded yet
Top
   
PostPosted: Tue Feb 27, 2018 8:05 am 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 89
Location: Czech Republic
I've tested it. Unfortunately, it is easily exploited to steal money from artificially created companies. :P

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Tue Feb 27, 2018 8:34 am 
Offline
Engineer
Engineer

Joined: Fri Dec 16, 2016 2:11 pm
Posts: 12
agentw4b wrote:
I've tested it. Unfortunately, it is easily exploited to steal money from artificially created companies. :P


Hi, yes, it is possible. But how to solve it? If you want, you can create a new company at any time and simply send money to you.


Top
   
PostPosted: Tue Feb 27, 2018 5:11 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 89
Location: Czech Republic
kraken wrote:
agentw4b wrote:
I've tested it. Unfortunately, it is easily exploited to steal money from artificially created companies. :P


Hi, yes, it is possible. But how to solve it? If you want, you can create a new company at any time and simply send money to you.


Yes, but here it is with buses to take the money borrowed from the bank. Send money borrowed from the bank is not possible.

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Tue Feb 27, 2018 6:33 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1055
Location: Courbevoie, near Paris, France
kraken wrote:
acs121 wrote:
Great ! Too bad it doesn't applicate to sections we choose - it'd be good to have tolled roads, but that's for a patch.


Hi, I'll look at it. It should be done through toll gates. The entrance or exit of the highway could be marked with a sign, even with a price, and if the car was passing through the gate, it would have to pay.

Edit: The possibility of a price change could be dangerous. The player may raise the price just before the car passes.


The player won't stay forever to change toll prices.
It'd also be good to pay a different tax for different cargoes. For example, because of security reasons, trucks transporting chemicals would pay a lot more than trucks transporting goods.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Wed Feb 28, 2018 10:26 am 
Offline
Engineer
Engineer

Joined: Fri Dec 16, 2016 2:11 pm
Posts: 12
acs121 wrote:
kraken wrote:
acs121 wrote:
It'd also be good to pay a different tax for different cargoes. For example, because of security reasons, trucks transporting chemicals would pay a lot more than trucks transporting goods.


Okay, I'll try to implement it


Top
   
PostPosted: Wed Feb 28, 2018 4:34 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1055
Location: Courbevoie, near Paris, France
By that, i mean players fixing a price for each cargo.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Thu Mar 01, 2018 12:24 pm 
Offline
Engineer
Engineer

Joined: Fri Dec 16, 2016 2:11 pm
Posts: 12
Hi, here is alpha version of HighwayToll2.

There are 3 modes.
1. Mode 0 - pay on all foreign roads (same as HighwayToll v1)
2. Mode 1 - pay from sign to sign on foreign roads
3. Mode 2 - pay from sign to sign on all roads

I implemented the option to mark a road section with signs. It does not matter what text on the sign will be. There can be for example name of the road or exit number on highway.
Different cargo feature is not implemented yet. Maybe in next version ;)

Here is example how it works. If vehicle ride from Exit1 to Exit2 the fee will be charged per every day the vehicle will be between the signs.

Image

Please report any problems. Thank you.


Attachments:
File comment: Alpha version of HighwayToll2
HighwayToll_2alpha.zip [17.13 KiB]
Downloaded 20 times
File comment: Example of using signs
highwaysigns.JPG [174.58 KiB]
Not downloaded yet
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.