[EX] Peripheral Biomes
[EX] Peripheral Biomes
When this mod is finished, it will have over 200 biomes. It is currently in an experimental phase, comment any bugs.
- Attachments
-
- peripheral.zip
- (5.25 KiB) Downloaded 29 times
Last edited by Elektrika on Wed Apr 28, 2021 16:54, edited 1 time in total.
eh
-
- Member
- Posts: 29
- Joined: Sat Aug 08, 2020 21:35
Re: [EX] Peripheral Biomes
loading mod causes error
nodes.lua: attempt to call global 'S' (a nil value)
you need to implement the translation function in your mod if you want the mod to load
EDIT: or just remove the S() function for now
EDIT2: you also forget to put an 'end' at the end of the register biomes function in mapgen.lua . did you test this?
EDIT3: the biomes won't register if you put them in a function anyways. remove "function default.register_biomes()" and let the biomes register on their own
EDIT4: you might want to add a minetest.clear_registered_biomes() to the beginning of the code if you want to remove the default biomes that are there normally and override them instead. I also attached a fixed version of the code.
EDIT5: you may also want to put your code up on github so ppl can do PRs etc
it's an interesting idea nonetheless, want to see where this goes
nodes.lua: attempt to call global 'S' (a nil value)
you need to implement the translation function in your mod if you want the mod to load
EDIT: or just remove the S() function for now
EDIT2: you also forget to put an 'end' at the end of the register biomes function in mapgen.lua . did you test this?
EDIT3: the biomes won't register if you put them in a function anyways. remove "function default.register_biomes()" and let the biomes register on their own
EDIT4: you might want to add a minetest.clear_registered_biomes() to the beginning of the code if you want to remove the default biomes that are there normally and override them instead. I also attached a fixed version of the code.
EDIT5: you may also want to put your code up on github so ppl can do PRs etc
it's an interesting idea nonetheless, want to see where this goes
- Attachments
-
- peripheral.zip
- bugs fixed
- (5.75 KiB) Downloaded 21 times
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
Re: [EX] Peripheral Biomes
^ I second the putting it up on GitHubchaosomnium wrote: ↑Tue Apr 27, 2021 17:35EDIT5: you may also want to put your code up on github so ppl can do PRs etc
it's an interesting idea nonetheless, want to see where this goes
Re: [EX] Peripheral Biomes
Try now, I removed the function. There will probably be no trees yet, I am trying to work out how to add trees and decorations now.
eh
- Linuxdirk
- Member
- Posts: 3217
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: [EX] Peripheral Biomes
Maybe start hosting on GitLab so people can easily check out your code and update the mod if you relase a new version.
You also automatically have revisable code versioning with that.
You also automatically have revisable code versioning with that.
Re: [EX] Peripheral Biomes
i recommend you choose a git host of your choice, github and gitlab are good options
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
Re: [EX] Peripheral Biomes
Update: biomes actually generate properly now
- Attachments
-
- peripheral.zip
- (5.51 KiB) Downloaded 25 times
eh
Who is online
Users browsing this forum: No registered users and 28 guests