[EX] Peripheral Biomes

Post Reply
Elektrika
Member
Posts: 52
Joined: Fri Sep 25, 2020 15:06
In-game: elektrika

[EX] Peripheral Biomes

by Elektrika » Post

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

chaosomnium
Member
Posts: 29
Joined: Sat Aug 08, 2020 21:35

Re: [EX] Peripheral Biomes

by chaosomnium » Post

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
Attachments
peripheral.zip
bugs fixed
(5.75 KiB) Downloaded 21 times

User avatar
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

by philipbenr » Post

chaosomnium wrote:
Tue Apr 27, 2021 17:35
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
^ I second the putting it up on GitHub

Elektrika
Member
Posts: 52
Joined: Fri Sep 25, 2020 15:06
In-game: elektrika

Re: [EX] Peripheral Biomes

by Elektrika » Post

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

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [EX] Peripheral Biomes

by Linuxdirk » Post

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.

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: [EX] Peripheral Biomes

by wsor4035 » Post

i recommend you choose a git host of your choice, github and gitlab are good options
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

Elektrika
Member
Posts: 52
Joined: Fri Sep 25, 2020 15:06
In-game: elektrika

Re: [EX] Peripheral Biomes

by Elektrika » Post

Update: biomes actually generate properly now
Attachments
peripheral.zip
(5.51 KiB) Downloaded 25 times
eh

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests