News:

Welcome to World of Banished!

Main Menu

display options for game speed

Started by littbarski, June 07, 2025, 10:14:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

littbarski

Hello everybody,

I know that it is not possible to mod the game speed steps, but I saw a mod that put the game speed options from the second to the first "layer" so that the clock is always visible.

So perhaps the following is possible?
- can I hide the speed options from the menu?
- or can I even hide some of the settings? (so that there is e.g. only 1x and 5x or 1x and 10x?)
- in which rsc file could I search and try myself for this?

thank you.

(I know about the Cheat Engine solution which I don't want to use)

littbarski

#1
ok at least I already found the toolbar.rsc, should have searched before :).
I will test if I can do something with this.

---
yeah this works :). I tested with setting the fast foward to "pause". Just want to make really slow, or only set another speed option, not many.
so the question which developed here now in the last minutes is just:

can I set the fast forward button to setting a certain speed (of the vanilla ones). So that I click on fast forward and get e.g. directly 5x? (or 2x, 10x).

RedKetchup

I dont know. the only thing i know, in the "test mod" version of the game, the developper did for testing live our mods during their creation... he made a 100x !!!

but where to look, what to do ... i have no idea
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

RedKetchup

if you succeed to change it ... i would glady use a mod from you which would add a "3X" :)
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

littbarski

thanks, well, I won't find this probably. I was happy enough to find the option to set pause instead of fast forward. Would be really nice to have an option like directly choosing 2x or 5x or 3x :).

RedKetchup

#5
maybe just change where they are anchored and delete each lines: Toolbar _parent = "time"; of each

Toolbar slow : "base"
{
int _sortPriority = 10;
String _toolTip = "SlowTip";
String _image = "ToolbarSlow";
Action _action = Slow;
Keys _hotKey = Tool0;
bool _autoHotKey = true;
}

Toolbar pause : "base"
{
int _sortPriority = 20;
String _toolTip = "PauseTip";
String _image = "ToolbarPause";
Action _action = Pause;
Keys _hotKey = Tool1;
bool _autoHotKey = true;
}

Toolbar play : "base"
{
int _sortPriority = 30;
String _toolTip = "PlayTip";
String _image = "ToolbarPlay";
Action _action = Play;
Keys _hotKey = Tool2;
bool _autoHotKey = true;
}

Toolbar speed : "base"
{
int _sortPriority = 40;
String _toolTip = "SpeedTip";
Action _action = Speed;
}

Toolbar fast : "base"
{
int _sortPriority = 50;
String _toolTip = "FastTip";
String _image = "ToolbarFast";
Action _action = Fast;
Keys _hotKey = Tool3;
bool _autoHotKey = true;
}



about creating a new, i have no idea. you can see they have some kind of (hidden)code

they are named: Slow (1x), play (2x), speed (5x) and fast (10x)
seems linked to Action _action =
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

RedKetchup

if i could, i would have changed the speed of existant one and modify the icon

5x ==> 3x instead and 10x ==> 5x instead
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

RedKetchup

they kinda setup in .crs files in \bin\WinData\Game

Toolbar_slow.crs
Toolbar_pause.crs
Toolbar_play.crs
Toolbar_speed.crs
Toolbar_fast.crs

but i dont know how to read those files, not really compatible with the notebook app
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

littbarski

Unfortunately I am no developer at all, but I find some words like the following when searching in grepWin (in several files which are all developers' files like exe or dll, no modding files...):

TicksToSeconds@Timer@System
SecondsToTicks@Timer@System
_systemSecondsPerTick@Timer@System
_systemTicksPerSecond@Timer@System
_ticksPerSecond@Timer@System
_systemInitialTick@Timer@System

I don't think that we can change values like that.

 

RedKetchup

but at least, you should be able to move them to the root of the bar now
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

littbarski

yeah, also the replacement to say that no acceleration is possible at all (Pause instead of FastTip) is an option. We just want to play relaxed in the family, and not always somebody at 10x speed and then suddenly the town is empty :).

After all I really searched a lot but did not find any hint about a certain speed, just as you also wrote. So it is. :)

littbarski

hello
I am still researching this... has anybody ever made a mod with some script that changes the action of e.g. the actions in toolbar.rsc?

that would be an option, to make a mod with a script.rsc that has some code logic and changes the action mentioned in toolbar.rsc.

but when I try this I get errors from the mod toolkit, because the script file is not a valid type "Template resource".

So I don't want specific help for my "project" but only to know if there are other mods that have implemented this, then I could look into those files as examples.

RedKetchup

> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

littbarski

#13
the toolbar.rsc shows an external resource "fast" and the button is defined as _action = Fast.

Is there any fast.rsc in any resource folder?
how does it look?
Perhaps there are options there, or, better, we could change the fast.rsc to call a script. But as I am not a developer I am not sure about this, if Banished can use .lua files for example.

---
I saw that you mentioned e.g. Toolbar_fast.crs before. But I have never worked with any crs file. Can we override crs files as well?
I guess no, so I asked about the fast.rsc. Or maybe a Toolbar_fast.rsc?
Also possible: simulation_speed.rsc ?

littbarski

I asked a bit MS Copilot and there should be some fast.rsc under "dialog" and even timewarp.rsc under "time". Don't know if this is just fabulating....

You can ask like "what is the structure of the fast.rsc in game banished?" in copilot and is says that the fast.rsc is included in the Mod toolkit. Not in mine :).

I get the error "Unexpected token '{' while looking for type" when I try to make a mod with a created dialod -> fast.rsc.