New currencies?
Moderator: Graphics Moderators
New currencies?
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!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
Re: New currencies?
Are you trying to do something that you can't do with the "Custom" option for currency?
Re: New currencies?
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!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
Re: New currencies?
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.
You should be able to do everything else through the custom currency setting.
Re: New currencies?
Custom currency setting doesn't help me release a NewGRF, though.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
Re: New currencies?
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.
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.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- Awesometrains
- Traffic Manager
- Posts: 129
- Joined: 22 Nov 2015 17:07
Re: New currencies?
They're not, you just have to enable them in Settings.Awesometrains wrote:Before you do that , figure out why Euros are disabled in OpenTTD
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: New currencies?
Are there currencies worth more than the GBP currently possible?
Re: New currencies?
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.Baldy's Boss wrote:Are there currencies worth more than the GBP currently possible?
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!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: New currencies?
Any plans to work the higher-value option into trunk?
If not,why not?
If not,why not?
Re: New currencies?
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.Baldy's Boss wrote:Any plans to work the higher-value option into trunk?
If not,why not?
Re: New currencies?
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.Baldy's Boss wrote:Any plans to work the higher-value option into trunk? If not,why not?
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
Re: New currencies?
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.
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.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- Awesometrains
- Traffic Manager
- Posts: 129
- Joined: 22 Nov 2015 17:07
Re: New currencies?
in game , dollar and euro both have twice HALF as much value as poundskamnet wrote: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.Baldy's Boss wrote:Are there currencies worth more than the GBP currently possible?
Which is fine, since I actually do have some currencies in mind where they are worth more than GBP.
Last edited by Awesometrains on 13 Feb 2016 18:39, edited 1 time in total.
Qa'pla!
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: New currencies?
Strike that; reverse it.Awesometrains wrote:in game , dollar and euro both have twice as much value as pouns
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
Re: New currencies?
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?
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?
// 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!
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 | GarryG's Auz Sets
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 | GarryG's Auz Sets
Re: New currencies?
You need to define the currency text with an action 4, which should look like this:kamnet wrote:Where'd I screw up?
Code: Select all
-1 * 0 04 48 FF 01 00 DC "Simoleans" 00
Code: Select all
-1 * 0 00 08 01 01 04 0A 00 DC
Good call. I coded a few currency grfs for TTDP many years ago, and though they do work in OTTD (at least ostensibly) I thought I'd have a proper look to see what they're doing.frosch wrote:Before you get too excited, you should test how much of the NewGRF currency stuff actually works.
Biggest problem is that property 0B (currency multiplier) doesn't seem to work properly. Setting this property to FF FF FF FF (the largest possible value) should in theory give a multiplier of £1 x 4,294,967.295; this works exactly so in TTDP, but in OTTD the result is actually £1 x 35,127 which is significantly lower. This wouldn't be so bad if OTTD was scaling these figures or if there was some logic to them, but my tests have been somewhat erratic. For example, setting property 0B to 55 55 55 55 gives a higher multiplier of £1 x 55,399! Unless I can establish a pattern or at least nail down some usable values this looks pretty broken to me.
I can confirm that multipliers lower than 1 won't work in OTTD. Setting property 0B to 01 00 00 00 (the lowest possible value) should result in a multiplier of £1 x 0.001; again, this works fine in TTDP, but in OTTD any multiplier lower than 1 will just make the value of everything appear as zero, which isn't helpful.
My projects: New Town Names | Snow Aware Arctic Buildings | Custom Buildings | Funny Cars | Mini GRFs | Bits & Bobs
Contributions: BK Enhanced Tunnel Set | Fix TTD GRF Bugs | INFRA Foundations | OpenGFX | OpenGFX+ Airports
Other stuff: The GRFs That Time Forgot! | Buildings in Glasgow
What's that in my avatar? It's the Brighton & Rottingdean Seashore Electric Railway - bonkers Victorian engineering!
Contributions: BK Enhanced Tunnel Set | Fix TTD GRF Bugs | INFRA Foundations | OpenGFX | OpenGFX+ Airports
Other stuff: The GRFs That Time Forgot! | Buildings in Glasgow
What's that in my avatar? It's the Brighton & Rottingdean Seashore Electric Railway - bonkers Victorian engineering!
Re: New currencies?
Hang on, are you saying a multiplyer of less than one makes everything cost 0? I can see a use for this.
Sent from my SM-G935F using Tapatalk
Sent from my SM-G935F using Tapatalk
Re: New currencies?
Create a bitcoin
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Who is online
Users browsing this forum: No registered users and 5 guests