Page 1 of 1
[Mod] [GitHub] CreativeChanger - per-player gamemode [creativechanger]

Posted:
Tue Apr 02, 2013 17:27
by Traxie21
This mod allows you to change from survival to creative and back with /gamemode.
Features:
- Priv based: Only players with the "gamemode" priv can change gamemodes.
- Change other player's gamemodes! /gamemode [name]
- Break blocks instantly! Faster than normal creative and with any block!
- When in creative mode, you do not use up blocks!
- Game modes are saved as they are changed, a crash will not make you lose your gamemode.
- Configurable default gamemode. (Default_Mode variable in config.txt) Players with a gamemode not set will be automatically switched to the default mode.
Download:
https://github.com/Traxie21/CreativeChanger/archive/master.zipNOTE: you must delete the default creative mod.
Not immediately compatable with other mods that edit the players inventory, eg. Inventory_Plus or Unified_Inventory.
GitHub:
https://github.com/Traxie21/CreativeChanger/License: Code - WTFPL
Dependencies: default

Posted:
Tue Apr 02, 2013 19:03
by Traxie21
No comments? :C
UPDATE: No longer depends on ServerExtended, you can now change other player's gamemode.

Posted:
Tue Apr 02, 2013 19:06
by Likwid H-Craft
No Comments since I think no one seen it yet..
Anyways I think we should have it inport like the sound.

Posted:
Tue Apr 02, 2013 19:25
by jojoa1997
This is something if working fine should be added to default

Posted:
Tue Apr 02, 2013 20:12
by Traxie21
Switched to GitHub, Added Infinite blocks in creative mode. Fixed changing other's names.
Priv is now gamemode.

Posted:
Tue Apr 02, 2013 20:14
by Likwid H-Craft
Traxie21 wrote:Switched to GitHub, Added Infinite blocks in creative mode. Fixed changing other's names.
Priv is now gamemode.
Hey do you think you can make it, a way to set it, on and off in pause menu or, you have to Hardcode it to do that?

Posted:
Tue Apr 02, 2013 20:18
by Traxie21
I believe you have to edit C++ to do that. Its no big deal to make it toggleable in inventory, but I don't really want to do that.

Posted:
Tue Apr 02, 2013 20:20
by Evergreen
I get an error message saying: ServerError: LuaError: error:
/creative_changer/init.lua:33: attempted to index field

Posted:
Tue Apr 02, 2013 20:40
by Traxie21
Fixed that error, but I have this one. It happens for awhile before finally allowing the player to join.
Does anyone else have this problem?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
00:40:35: ERROR[ServerThread]: register_ore: clust_scarcity and clust_num_oresmust be greater than 0Server: peer_id=2: failed to emerge player

Posted:
Tue Apr 02, 2013 20:40
by jojoa1997
uh that is a game bug not your mod bug

Posted:
Tue Apr 02, 2013 20:41
by Likwid H-Craft
Traxie21 wrote:Fixed that error, but I have this one. It happens for awhile before finally allowing the player to join.
Does anyone else have this problem?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
00:40:35: ERROR[ServerThread]: register_ore: clust_scarcity and clust_num_oresmust be greater than 0Server: peer_id=2: failed to emerge player
That happens to me once but it fixed now but the peer_id=2: failed to emerge player still pops up hope 0.4.6 will be fixed.

Posted:
Tue Apr 02, 2013 20:47
by Traxie21
It has something to do with this mod, I think it takes too long to run through all the code on joining.

Posted:
Wed Apr 03, 2013 08:44
by Calinou
Traxie21 wrote:When in creative mode, you do not use up blocks!
That's not a new feature added by your mod, in the default game, nodes are also infinite.

Posted:
Wed Apr 03, 2013 10:24
by markveidemanis
Can you make it work with 2 other mods i have?
They are an edited creative mod and inventory plus also edited to work with the creative mod.
I would like all these mods to work together.
Link:
http://ompldr.org/vaHozNw/INV.zipThe biggest problem is that the buttons from inventory_plus dont appear in the survival.
They appear when i start the game, it is survival but when i do /gamemode, it removes the buttons and says survival mode.
I need it to be edited so that the creativechanger could use the creative inventory i have included.

Posted:
Wed Apr 03, 2013 12:03
by Traxie21
markveidemanis wrote:Can you make it work with 2 other mods i have?
They are an edited creative mod and inventory plus also edited to work with the creative mod.
I would like all these mods to work together.
Link:
http://ompldr.org/vaHozNw/INV.zipThe biggest problem is that the buttons from inventory_plus dont appear in the survival.
They appear when i start the game, it is survival but when i do /gamemode, it removes the buttons and says survival mode.
I need it to be edited so that the creativechanger could use the creative inventory i have included.
To do this, you simply need to replace the formspec definitions in CC with the ones from your creative mod and inventory plus. Unfortunately, I will probably not be able to do this until next week, I'm going off on a trip.
I'ts quite easy, as I've done it with MiniTest

Posted:
Wed Apr 03, 2013 12:20
by jojoa1997
I get an error for loine 33 about indexing a unknown field

Posted:
Wed Apr 03, 2013 17:39
by Traxie21
New version that fixes the above bug, Fixes the long loading time for players in Creative mode, Fixes the long loading time when changing modes, adds better compatability for other mods which add items into the game. Adds a SURVIVAL_FORMSPEC variable for changing the survival formspec to use other formats, Adds a hidden CREATIVE_FORMSPEC variable for changing the creative formspec, although I do not reccommend using this unless you know what you're doing.
@Calinou: I had to re-implement everything about creative mode, and I did this probably a different way then the default.

Posted:
Wed Apr 03, 2013 18:33
by jojoa1997
would this help?

Posted:
Wed Apr 03, 2013 22:42
by Traxie21
would what help?

Posted:
Thu Apr 04, 2013 00:17
by jojoa1997
oh well it was a link to github about a couple days ago. go to common and look at the commit

Posted:
Thu Apr 04, 2013 00:31
by Traxie21
jojoa1997 wrote:would this help?
Oh yea, that will help a bit.

Posted:
Mon Jul 01, 2013 21:56
by Slain
Can you make support for craftingpack mod?

Posted:
Thu Jul 04, 2013 16:42
by Slain
or for now, make it compatible with 'search your creative inventory' mod

Posted:
Thu Jul 04, 2013 18:52
by sfan5
Traxie21 wrote:Configurable default gamemode. (Default_Mode variable in config.txt)
Y U NO USE minetest.conf?

Posted:
Sun Jul 07, 2013 11:15
by rubenwardy
This is very cool.