[(Client)Mod] get the worldname in csm [csm_worldname]

Post Reply
User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

[(Client)Mod] get the worldname in csm [csm_worldname]

by Desour » Post

Did you ever want to get something like the name of the server's world in csm? Now you can.
This mod adds an API to get an identifier (a string) for the server world, so that you can store data per server.
The user has to set the worldname each game session, using the .worldname chatcommand.
You can also install this mod on your server to send the user a hint.

Optional Depends: csm_com (for server hint)

Git repo: https://codeberg.org/Desour/csm_worldname
Last edited by Desour on Mon Oct 16, 2023 22:09, edited 2 times in total.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Lone_Wolf » Post

Problem with this csm too. No name of world when I do .worldname?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Desour » Post

Lone_Wolf wrote:Problem with this csm too. No name of world when I do .worldname?
That means the server doesn't have csm_worldname installed.

I could give the possibility to set the worldname manually in a formspec if the server doesn't have the mod.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Lone_Wolf » Post

DS-minetest wrote:
Lone_Wolf wrote:Problem with this csm too. No name of world when I do .worldname?
That means the server doesn't have csm_worldname installed.

I could give the possibility to set the worldname manually in a formspec if the server doesn't have the mod.
Yes please do that lol
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Qbiq
Member
Posts: 31
Joined: Sun Jul 09, 2017 17:37
In-game: Qbiq

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Qbiq » Post

What is the command to change the world name? I'm using the notebook CSM as well, I think it would be nice to be able to switch between notes.

Image

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Desour » Post

Qbiq: You are using my worldstorage mod, not csm_worldname. They both register the chatcommand "worldname". You shouldn't use both mods at once.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

Qbiq
Member
Posts: 31
Joined: Sun Jul 09, 2017 17:37
In-game: Qbiq

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Qbiq » Post

Ah... Thank you DS. Sorry about that.

User avatar
LemonFox
Member
Posts: 25
Joined: Tue Jan 09, 2018 16:27
IRC: LemonFox
In-game: LemonFox

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by LemonFox » Post

Any luck on making a way so you can make your own worldname if the server does not have one?
or maybe just outputting the server name as the worldname?

i want to use csm_waypoints but cant on the server i want to run it on as it does not have a name

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Lone_Wolf » Post

LemonFox wrote:Any luck on making a way so you can make your own worldname if the server does not have one?
or maybe just outputting the server name as the worldname?

i want to use csm_waypoints but cant on the server i want to run it on as it does not have a name
I use this mod. It requires the teleport priv to work https://github.com/octacian/savepos
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [(Client)Mod] get the worldname in csm [csm_worldname]

by Desour » Post

Update:

The user now has to set the worldname via a chatcommand. It's no longer set automatically.
But it now also works on servers that don't have the mod installed.

I didn't test much though.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests