Search found 96 matches

Return to advanced search

Also consider using smartfs (https://forum.minetest.net/viewtopic.php?id=7553) library which provides an object oriented way of handling formspecs.
by domtron vox
Mon Mar 31, 2014 11:35
 
Forum: WIP Mods
Topic: [I need a help] how to create GUI
Replies: 6
Views: 888

Are you sure you have the kits folder. That is the only cause of that error I can figure out. If anyone else knows of another possibility please pipe up. :) Your ranks_n_kits mod folder should have init.lua, the kits folder, and a README.md(this one isn't necessary per say but I would prefer you kee...
by domtron vox
Sun Mar 30, 2014 02:22
 
Forum: WIP Mods
Topic: [Mod] Ranks and Kits [V0.3] [ranks_n_kits]
Replies: 19
Views: 2907

First I guess we need to find out what files are in the apps folder, loop through them, and then do a minetest.register_chatcommand for each filename. Ideas on how to do this? Just figured this out in my ranksNKits mod. local dir = minetest.get_modpath(minetest.get_current_modname()).."/apps/" loca...
by domtron vox
Sat Mar 29, 2014 22:20
 
Forum: WIP Mods
Topic: [Mod] ComputerTest
Replies: 23
Views: 9866

That is not enough information I need around 10 lines. It should look like this: 17:45:46: ERROR[main]: ========== ERROR FROM LUA =========== 17:45:46: ERROR[main]: Failed to load and run script from 17:45:46: ERROR[main]: /home/domtron/games/minetest/bin/../games/minetest_game/mods/default/init.lua...
by domtron vox
Sat Mar 29, 2014 22:03
 
Forum: WIP Mods
Topic: [Mod] Ranks and Kits [V0.3] [ranks_n_kits]
Replies: 19
Views: 2907

Ranks are currently non-persistent. This means if the server is reset or the game is quit all players loose their ranks. Perhaps ranks ought to be managed by a diffrent mod. They might be useful for other purposes. I was thinking something similar, but I don't know of any mods that implement ranks ...
by domtron vox
Sat Mar 29, 2014 21:25
 
Forum: WIP Mods
Topic: [Mod] Ranks and Kits [V0.3] [ranks_n_kits]
Replies: 19
Views: 2907

by domtron vox
Fri Mar 28, 2014 22:31
 
Forum: WIP Mods
Topic: Kit Mod
Replies: 15
Views: 2031

[Mod] Ranks and Kits [V0.3] [ranks_n_kits]

Hi, This is my first mod. I saw mcfan request a simple mod here so I obliged. The mod is attached as both a zip and a tar.gz. This mod adds kits, a set of items, to minetest. Each kit is related to one rank. When a player has a rank and sends the chat command /givekit he will receive all items that ...
by domtron vox
Fri Mar 28, 2014 22:30
 
Forum: WIP Mods
Topic: [Mod] Ranks and Kits [V0.3] [ranks_n_kits]
Replies: 19
Views: 2907

In which context do you need that function? Mostly it's enough to store data in one file. For configuration, I'm playing around with this mod request and wanted to have a sub-folder of the mod were kits could be stored. For example kitmod/kits/noob.kit defines the kit for the rank "noob." You can d...
by domtron vox
Fri Mar 28, 2014 19:03
 
Forum: WIP Mods
Topic: lua: list files in a directory
Replies: 5
Views: 3260

lua: list files in a directory

Is there a way to list the file names in a directory? I tried to use the function in the second answer at http://stackoverflow.com/questions/5303174/get-list-of-directory-in-a-lua but popen function is not supported. Also, that particular function only works with systems that have 'ls' installed. I ...
by domtron vox
Fri Mar 28, 2014 12:29
 
Forum: WIP Mods
Topic: lua: list files in a directory
Replies: 5
Views: 3260

A global table is where you set a global variable to {} which allows you to store key/value pairs. local kits = {} --this is NOT a global table kits = {} --this IS a global table Are you looking for a mod were you make calls to it from another mod to add ranks and kits or do you want it to have a fi...
by domtron vox
Thu Mar 27, 2014 21:09
 
Forum: WIP Mods
Topic: Kit Mod
Replies: 15
Views: 2031

I have been very busy with RL but just got some time to write up a list element. It is mostly functional but I'm sure it could use some improving. I just expanded on the example code I wrote earlier to develop/test it. I have an error i don't understand when running close() on the form in the double...
by domtron vox
Sat Mar 22, 2014 16:01
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

Simple fix
Code: Select all
line 6  local form = smartfs.create("test@"..player:get_player_name(),


I had assumed that later forms with the same name as previous forms would just overwrite the previous forms. I edited my previous post so as to not lead others astray. ;)
by domtron vox
Tue Mar 04, 2014 15:47
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

And since I took the time to figure that out here are the docs on it. I put them after showing forms: [spoiler]## Modifying Elements Elements have functions of the form element:function(args) where you need to have access to the element object. You can get the element object by assigning a variable ...
by domtron vox
Fri Feb 28, 2014 20:15
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

Would this allow to run function on button click like this one: button:onlick(callAFunction(withButtonRelatedParam)) if button is a variable that points to an element. For example if button is set using either local button = state:button(0,0, 1,4, "btn","a button") or local button = state:get("btn"...
by domtron vox
Fri Feb 28, 2014 19:56
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

Hi, I did some documentation for you. Use it, lose it, or shred it. It is yours to do with as you please. I'll write up a section on creating new elements once I get around to trying it out. ;) I'm not 100% sure how accurate it is. If you don't use it I would like to point out that some of your func...
by domtron vox
Thu Feb 27, 2014 21:44
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

Are you using the stable or latest dev of minetest(if you don't know look at the top left where it says "minetest <version>)? And what OS(windows 7, ubuntu, ect) are you on?
by domtron vox
Wed Feb 26, 2014 03:21
 
Forum: WIP Mods
Topic: question about a mod
Replies: 5
Views: 1070

EDIT: missed the above post That would be a poor design since it would immediately leave the targeted area. The "gas" should hug the ground and slowly spread out and loose it's potency so it would be like: # = gas cloud h/s = hearts/second above side # 8 h/s # # # ### 6 h/s ### # # ### ### ##### 1 h...
by domtron vox
Tue Feb 25, 2014 17:32
 
Forum: WIP Mods
Topic: new mods request! "Gas mod" and "Cook mod"Further "Universal electry"
Replies: 5
Views: 1906

I like the gas idea, though I'd be surprised if no one else has implemented one. You could prevent grefers by packing poison gas between your walls or make trap rooms that fill with gas if a wrong combination is used. Gas in viles could be broken on a tile to generate a gas cloud around it which wil...
by domtron vox
Tue Feb 25, 2014 13:01
 
Forum: WIP Mods
Topic: new mods request! "Gas mod" and "Cook mod"Further "Universal electry"
Replies: 5
Views: 1906

Fixed. Always a nice thing to hear. You have tried making the same form twice. Yep, I understood since your error is quite clear. I was just referring to the throw vs. error thing. As for button heights, it should work. Then I have no clue what I'm doing wrong. :/ I'm interested in eventually using...
by domtron vox
Fri Feb 21, 2014 19:27
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

Great Mod! I am going to try and use it for my mod. I do have a question though. It seems like the height value has no effect on the button. Is this a problem with smartfs or is it an engine limitation(I was trying to make a square button)? EDIT: I'm using the smartfs.lua as a library. I got the fol...
by domtron vox
Thu Feb 20, 2014 22:42
 
Forum: Mod Releases
Topic: [Mod] Smart Formspecs - OO builder + binding [1.1][smartfs]
Replies: 31
Views: 7994

thetoon wrote:
Krock wrote:I wish a mod, which creates other mods.


Let's call it 'skynet'.


http://skynet.im/
by domtron vox
Thu Feb 20, 2014 21:11
 
Forum: WIP Mods
Topic: Future of Mods!
Replies: 7
Views: 985
Previous

Return to advanced search