In game palette swap
Moderator: OpenTTD Developers
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
In game palette swap
Alright, disclaimer: I'll have to admit, I screwed myself over. I know. But it gave me an idea.
I accidentally swapped a palette of a signal set, then created a scenario that I wanted to play. After hours of fidgeting I created a fun scenario that I wanted to try out. So I start the map in game mode and what do I see? Pink signals!
After some research into this issue, I switched back the palette for the signals NewGRF in the main menu but alas. The scenario I spend hours on creating is practically useless (well of course I can still play it but it diminishes the experience immensely. It's like the game it glitched while it's just a setting).
So the idea is to be able to swap the palette of NewGRF in game as well as outside.
Is such a thing possible? I understand that loading and unloading NewGRF's is as hard to implement as it gets but would a palette swap still be possible somehow?
I accidentally swapped a palette of a signal set, then created a scenario that I wanted to play. After hours of fidgeting I created a fun scenario that I wanted to try out. So I start the map in game mode and what do I see? Pink signals!
After some research into this issue, I switched back the palette for the signals NewGRF in the main menu but alas. The scenario I spend hours on creating is practically useless (well of course I can still play it but it diminishes the experience immensely. It's like the game it glitched while it's just a setting).
So the idea is to be able to swap the palette of NewGRF in game as well as outside.
Is such a thing possible? I understand that loading and unloading NewGRF's is as hard to implement as it gets but would a palette swap still be possible somehow?
Re: In game palette swap
Maybe I misread your issue and you did this already, but you should open the console and type "set newgrf_developer_tools 1".
Then you can modify the palette of your GRF ingame, but only in single player, by opening the NewGRF parameters.
Then you can modify the palette of your GRF ingame, but only in single player, by opening the NewGRF parameters.
Re: In game palette swap
You should be able to re-open the scenario file in the scenario editor and make the modification there.
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: 11501
- Joined: 20 Sep 2004 22:45
Re: In game palette swap
This is something I haven't tried yet. Will give it a spin! Thanks a lot!acs121 wrote:set newgrf_developer_tools 1
If you mean using the console command over there, then yes good idea! Then every time I play the scenario, it'll be correct again.kamnet wrote:You should be able to re-open the scenario file in the scenario editor and make the modification there.
Re: In game palette swap
please stop spreading this. the correct command for this situation is "set scenario_developer 1"acs121 wrote:Maybe I misread your issue and you did this already, but you should open the console and type "set newgrf_developer_tools 1".
Then you can modify the palette of your GRF ingame, but only in single player, by opening the NewGRF parameters.
Re: In game palette swap
"set newgrf_developer_tools 1" works too. I'm not bull****-spreading.Eddi wrote:please stop spreading this. the correct command for this situation is "set scenario_developer 1"acs121 wrote:Maybe I misread your issue and you did this already, but you should open the console and type "set newgrf_developer_tools 1".
Then you can modify the palette of your GRF ingame, but only in single player, by opening the NewGRF parameters.
Re: In game palette swap
no, but if someone says "help, i need some training in self-defense" you don't go "sure, here have this AK47"
-
- Traffic Manager
- Posts: 222
- Joined: 18 Jun 2016 19:05
Re: In game palette swap
Where would i find "the console"? The number of games I've had to restart after I realise I've screwed up a grf setting 10 years in!acs121 wrote:Maybe I misread your issue and you did this already, but you should open the console and type "set newgrf_developer_tools 1".
Then you can modify the palette of your GRF ingame, but only in single player, by opening the NewGRF parameters.
Re: In game palette swap
Hold your click on the Terrain Information Tool and you will see "Open/Close the console".
Re: In game palette swap
It can also be accessed in the conventional way by pressing ~ (or the key below Esc).acs121 wrote:Hold your click on the Terrain Information Tool and you will see "Open/Close the console".
Re: In game palette swap
Well that's a bit extreme. As a comparison, having a gun for self-defense is illegal, except if you're from the police. While typing a normal command in the console is totally legal and not as dangerous. It depends on what you're changing - while removing a vehicle set can corrupt your savegame, removing a road set "the old way" that only replace graphics is inoffensive for your savegame.Eddi wrote:no, but if someone says "help, i need some training in self-defense" you don't go "sure, here have this AK47"
Re: In game palette swap
i don't think you get what i was trying to say with the analogy...acs121 wrote:Well that's a bit extreme. As a comparison, having a gun for self-defense is illegal, except if you're from the police. While typing a normal command in the console is totally legal and not as dangerous. It depends on what you're changing - while removing a vehicle set can corrupt your savegame, removing a road set "the old way" that only replace graphics is inoffensive for your savegame.Eddi wrote:no, but if someone says "help, i need some training in self-defense" you don't go "sure, here have this AK47"
all the things you're saying you can do with the setting "scenario_developer", the dangerous and the less dangerous ones. however, "newgrf_developer_tools" enables additional bad and even worse things that are not even relevant to the topic. and that's why it's a bad idea to tell people to use it.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: In game palette swap
I split off the off-topic discussion...
On-topic: Eddi has a point. Use the appropriate tools. Not the big sledgehammer when you need a chisel. scenario_developer is the setting you need when you want to edit newgrfs in a savegame or scenario.
On-topic: Eddi has a point. Use the appropriate tools. Not the big sledgehammer when you need a chisel. scenario_developer is the setting you need when you want to edit newgrfs in a savegame or scenario.
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
Who is online
Users browsing this forum: No registered users and 25 guests