Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Jan 17, 2018 1:21 pm

All times are UTC




Post new topic  Reply to topic  [ 17 posts ] 
Author Message
 Post subject: New currencies?
PostPosted: Sun Jan 24, 2016 4:12 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
Is it possible to code new currencies via either NFO or NML? I can't seem to find any references.

_________________
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
   
 Post subject: Re: New currencies?
PostPosted: Sun Jan 24, 2016 8:11 pm 
Offline
President
President
User avatar

Joined: Tue Nov 23, 2010 9:25 pm
Posts: 946
Location: ::1
Are you trying to do something that you can't do with the "Custom" option for currency?


Top
   
 Post subject: Re: New currencies?
PostPosted: Sun Jan 24, 2016 9:40 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
I'd like to have new currencies with new symbols that I create.

_________________
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
   
 Post subject: Re: New currencies?
PostPosted: Tue Jan 26, 2016 12:35 am 
Offline
President
President
User avatar

Joined: Tue Nov 23, 2010 9:25 pm
Posts: 946
Location: ::1
The currency symbol needs to be a part of Unicode character set (like how Indian rupee symbol was added as recent as August of 2010), or you'll have to use a shorthand for your currency, such as USD, GBP etc.
You should be able to do everything else through the custom currency setting.


Top
   
 Post subject: Re: New currencies?
PostPosted: Tue Jan 26, 2016 12:36 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
Custom currency setting doesn't help me release a NewGRF, though. ;)

_________________
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
   
 Post subject: Re: New currencies?
PostPosted: Tue Jan 26, 2016 6:37 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Dec 20, 2006 1:31 pm
Posts: 975
Location: Aschaffenburg
What you can do:
Write a NFO grf
* Define a sprite font glyph in the unicode private area (towards the end, because in the beginning are already trains symbols and stuff).
* Use Action 0 feature 8 (https://newgrf-specs.tt-wiki.net/wiki/A ... l_Settings) to define a custom currency.
* While I am not aware of anyone every using this, since it is pretty useless compared to the in-game custom currency option, for some reason it is even implemented in OTTD. But apparently NewGRF currency take precedence over any GUI setting.
* In any case it won't look that good, if you are using a truetype font otherwise. Since your currency symbol will not scale.

_________________
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁


Top
   
 Post subject: Re: New currencies?
PostPosted: Sun Jan 31, 2016 3:03 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 22, 2015 5:07 pm
Posts: 133
Before you do that , figure out why Euros are disabled in OpenTTD

_________________
Qa'pla!


Top
   
 Post subject: Re: New currencies?
PostPosted: Sun Jan 31, 2016 6:29 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
Awesometrains wrote:
Before you do that , figure out why Euros are disabled in OpenTTD


They're not, you just have to enable them in Settings.

_________________
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
   
 Post subject: Re: New currencies?
PostPosted: Sun Jan 31, 2016 11:16 pm 
Offline
Tycoon
Tycoon

Joined: Sun Feb 23, 2014 10:02 pm
Posts: 1218
Are there currencies worth more than the GBP currently possible?


Top
   
 Post subject: Re: New currencies?
PostPosted: Mon Feb 01, 2016 1:02 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
Baldy's Boss wrote:
Are there currencies worth more than the GBP currently possible?


According to Action 0, Property 0B, yes. Unfortunately it doesn't look like this is implemented into OpenTTD custom currency option itself, it's only available via NewGRF.

Which is fine, since I actually do have some currencies in mind where they are worth more than GBP.

_________________
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
   
 Post subject: Re: New currencies?
PostPosted: Wed Feb 03, 2016 7:45 am 
Offline
Tycoon
Tycoon

Joined: Sun Feb 23, 2014 10:02 pm
Posts: 1218
Any plans to work the higher-value option into trunk?
If not,why not?


Top
   
 Post subject: Re: New currencies?
PostPosted: Wed Feb 03, 2016 3:23 pm 
Offline
President
President
User avatar

Joined: Tue Nov 23, 2010 9:25 pm
Posts: 946
Location: ::1
Baldy's Boss wrote:
Any plans to work the higher-value option into trunk?
If not,why not?

That's a topic for OpenTTD Development or OpenTTD Suggestions forum, as it has nothing to do with NewGRF. Maybe a moderator can split the topic and move the new thread there.


Top
   
 Post subject: Re: New currencies?
PostPosted: Wed Feb 03, 2016 5:05 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
Baldy's Boss wrote:
Any plans to work the higher-value option into trunk? If not,why not?


I suppose that if that's what the devs wanted to do, they just would have done it years ago rather than put it into the NewGRF spec.

_________________
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
   
 Post subject: Re: New currencies?
PostPosted: Wed Feb 03, 2016 7:05 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Dec 20, 2006 1:31 pm
Posts: 975
Location: Aschaffenburg
Before you get too excited, you should test how much of the NewGRF currency stuff actually works.
I am quite sure that noone tested it ever.

I can already tell you that fractional conversion rates with £ won't work. The fractional part is already dropped when loading the NewGRF.

_________________
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁


Top
   
 Post subject: Re: New currencies?
PostPosted: Thu Feb 11, 2016 1:49 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 22, 2015 5:07 pm
Posts: 133
kamnet wrote:
Baldy's Boss wrote:
Are there currencies worth more than the GBP currently possible?


According to Action 0, Property 0B, yes. Unfortunately it doesn't look like this is implemented into OpenTTD custom currency option itself, it's only available via NewGRF.

Which is fine, since I actually do have some currencies in mind where they are worth more than GBP.

in game , dollar and euro both have twice HALF as much value as pounds

_________________
Qa'pla!


Last edited by Awesometrains on Sat Feb 13, 2016 6:39 pm, edited 1 time in total.

Top
   
 Post subject: Re: New currencies?
PostPosted: Thu Feb 11, 2016 4:58 am 
Offline
Tycoon
Tycoon

Joined: Sun Dec 16, 2007 10:24 pm
Posts: 1631
Location: Idaho, USA
Awesometrains wrote:
in game , dollar and euro both have twice as much value as pouns

Strike that; reverse it. :wink:

_________________
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton


Top
   
 Post subject: Re: New currencies?
PostPosted: Wed Jul 26, 2017 9:54 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5899
Location: Eastern KY
Finally picking this back again... good grief I've forgotten all the NFO I barely knew!

Here's just a small sampling, trying to set up my file and just provide a new currency name. Grfcodec hangs trying to compile. Where'd I screw up? :)

Quote:
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
0 * 4 0A 00 00 00
1 * 110 08 06 "KF" 09 01 "Simoleon Currency" 00 "Custom currency based on the video games SimCity and The Sims. Code by Kevin Fields (kamnet)." 00
2 * 6 00 08 0A 00 00 "Simoleons"

_________________
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
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 17 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.