NoCarGoal Pikka Remix ft. Scuddles

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

NoCarGoal Pikka Remix ft. Scuddles

Post by PikkaBird »

This is a slight modification to Zuu's NoCarGoal, one of the earliest and simplest gamescripts, and still one of the most fun! It will be on Bananananas shortly - I'm posting the thread first so I can put the URL in the gamescript. :)

Changelog:

Version 1:

- Fixed off-by-one-year error in the company goal window.

- Increased default cargo to transport to 20,000 units.
- Set default progress report to yearly rather than monthly.

- Rewrote cargo selection system to be more FIRS-friendly. The original cargo
selection process only forbade "primary", ie no-input cargos, but FIRS
does not have no-input cargos. Instead, the new system is:

- No Passengers or Mail.
- No Engineering, Farm or Marine Supplies.
- Selected cargos may be in the same chain but cannot be siblings or sequential
(eg FIRS Iron Ore and Goods are possible, but not Iron Ore and Steel or Iron
Ore and Coal).
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: NoCarGoal Pikka Remix ft. Scuddles

Post by PikkaBird »

Version 2:

- Fixed another off-by-one-year error in the storybook.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: NoCarGoal Pikka Remix ft. Scuddles

Post by PikkaBird »

Version 3:

- (Possibly) fixed an assert when the bronze medal is reached with the exact cargo amount.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: NoCarGoal Pikka Remix ft. Scuddles

Post by PikkaBird »

Version 4:

- Added a parameter to disable primary industry cargos, similar to the intent of the
original gamescript. Primary industry cargos are defined as cargos produced by
an industry that accepts nothing, or that accepts Engineering, Farm or Marine supplies.

Sibling inputs are now allowed (eg FIRS Iron ore and Coal), but not sibling exports or
sequential cargos in a chain.

If the game cannot find enough non-primary, non-conflicting cargos to transport (as with
the default industries, for example), it will select a primary cargo as a fallback.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 3 guests