Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Apr 20, 2019 5:21 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Jan 25, 2019 4:27 am 
Offline
Engineer
Engineer

Joined: Fri Jan 25, 2019 4:22 am
Posts: 2
Hi, so I've created a Scenario map based on Locomotions Oil Oasis, problem is I cant create the win conditions eg 9 years to supply 50,000 of oil.
How do I create a win condition like this? I'm no good at coding...


Top
   
PostPosted: Fri Jan 25, 2019 6:18 am 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5372
Location: The Moon
You would have to create it using a gamescript (which would not be tied to the map).

The good news is, such a gamescript would be really easy to code - just a couple of lines.

_________________
Pikkarail.com blog | Patreon
Current development: UKRS3 - Av9.8 - TaI32 - CivilAI
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAI API - NoGo API


Top
   
PostPosted: Fri Jan 25, 2019 10:21 am 
Offline
Engineer
Engineer

Joined: Fri Jan 25, 2019 4:22 am
Posts: 2
as I said I'm no good at coding. would this be something you could do?


Top
   
PostPosted: Fri Jan 25, 2019 10:30 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1825
Location: Courbevoie, near Paris, France
I'm sure a few people by these forums would like to help you, but I cant't tell who, although I know PikkaBird is a great gamescript coder.

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


My screenshots


Top
   
PostPosted: Fri Jan 25, 2019 11:39 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9260
Location: Sol d
acs121 wrote:
I'm sure a few people by these forums would like to help you, but I cant't tell who, although I know PikkaBird is a great gamescript coder.

Possibly, but mind: GameScript is not NewGRF.

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
PostPosted: Mon Jan 28, 2019 9:26 am 
Offline
Moderator
Moderator
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 6519
Location: Eastern KY
EarthsDefect wrote:
as I said I'm no good at coding. would this be something you could do?


Nobody is good at coding when they first start. It takes practice, repetition and patience. But, if you try, there's only one possible thing that can happen - you get better.

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
PostPosted: Thu Jan 31, 2019 9:06 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4551
Location: /home/sweden
You can perfectly fine create a scenario that uses a specific GS such that the scenario will use that Game Script. But you will have to release the Game Script as a separate BaNaNaS-entry that is downloadable separate to the scenario. You can set a property in info.nut so that the game script will be hidden for all players except those who have ai_developer mode activated. And for them you provide a info-text that the GS is not general purpose.

I have created two such combos where there is both a GS and a Scenario that are meant to be used together. It is not the easiest thing to do and you will likely want to use musa when you upload the scenario so you can set up dependencies that are a bit more wild than the bananas web UI allows.

The two examples are:
  • Split - a scenario and a GS - quite old and more a proof of concept than a very good scenario. When you complete a goal, the land will raise and connect the main land with an island
  • Beginner tutorial - a in-game tutorial implemented using a scenario + GS and there is also an AI that can complete one of the chapters for you. More complex, but have all parts probably more well organized in its git repo at openttdcoop devzone.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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-2019 phpBB Limited

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