[Mod] Landscape [0.1 beta] [landscape]

Post Reply
User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

[Mod] Landscape [0.1 beta] [landscape]

by BlockMen » Post

Hi everyone,

this mod lets the Grass-Landscape look better and smoother. So if Dirt with Grass builds a hill it becomes now a real Grass hill.


Screenshot:
Image

Notice:
- If you want regular "Dirt with Grass" back, then change first line in its init.lua to "local remove_full_grass = true"
- Code at https://github.com/BlockMen/landscape

Known Bugs:
- rarely the "Dirt with Grass" becomes "Dirt" at height y=13

Depends:
default

Download:
From Github: Download

License:
WTFPL



Please give Feedback and ideas for improvement. If someone could look at code for the known bug would be nice too.
Last edited by BlockMen on Sat May 11, 2013 17:34, edited 1 time in total.

User avatar
Calinou
Moderator
Posts: 3166
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

"Better Grass" reimplementation spotted! :)

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

Calinou wrote:"Better Grass" reimplementation spotted! :)
I thought it could be a mod, but was not knowing. Just had seen at a Let's Play (Mc) and thought it would be nice to have more green at Minetest too.

Futhermore I want implement a few things more, but that will need more time.

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

Couldn't you just change the texture for grass to have the green on the sides too?
Shoutouts to Simpleflips

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

12Me21 wrote:Couldn't you just change the texture for grass to have the green on the sides too?
When I just redefine the texture there are strange egdes between grass and other blocks. This is most important at Cliffs or at borders of biomes.

So the main goal is to improve Grass hills and to make them look more realistic.

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

oh, I see now
Shoutouts to Simpleflips

User avatar
Pavel_S
Member
Posts: 131
Joined: Sat Apr 06, 2013 11:43

by Pavel_S » Post

Good mod=).

User avatar
vktRus
Member
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Post

Stable version.

Code: Select all

22:10:06: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../minetest/.minetest/mods/minetest/landscape/init.lua:64: attempt to index field '?' (a nil value)
22:10:06: ERROR[main]: stack traceback:

In thread b6d6c700:
/build/buildd/minetestc55-0.4.6/src/main.cpp:1967: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b6d6c700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))
(Leftover data: #4  void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool))

User avatar
rubenwardy
Moderator
Posts: 6451
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

Nice.

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

vktRus wrote:Stable version.

Code: Select all

-error msg-
Ok, it should be fixed now. Could you give me a feedback if it still crashes?

User avatar
vktRus
Member
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Post

Code: Select all

22:26:51: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../minetest/.minetest/mods/minetest/landscape/init.lua:66: attempt to ind
ex field '?' (a nil value)
22:26:51: ERROR[main]: stack traceback:

In thread b6cfd700:
/build/buildd/minetestc55-0.4.6/src/main.cpp:1967: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b6cfd700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))

User avatar
sfan5
Moderator
Posts: 3990
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Nice!
This add "Better Grass" like in MC
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

vktRus wrote:

Code: Select all

-error msg-

Ok, but fixed now ;)

User avatar
vktRus
Member
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Post

:)

Code: Select all

18:33:23: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../minetest/.minetest/mods/minetest/landscape/init.lua:19: attempt to index field '?' (a nil value)
18:33:23: ERROR[main]: stack traceback:

In thread b6cd8700:
/build/buildd/minetestc55-0.4.6/src/main.cpp:1967: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b6cd8700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

vktRus wrote::)

Code: Select all

-error msg-
I accept the challenge :P

Give it another try

User avatar
vktRus
Member
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Post

Code: Select all

23:13:07: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../minetest/.minetest/mods/minetest/landscape/init.lua:21: attempt to index field '?' (a nil value)
23:13:07: ERROR[main]: stack traceback:

In thread b6d70700:
/build/buildd/minetestc55-0.4.6/src/main.cpp:1967: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b6d70700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

vktRus wrote:

Code: Select all

-error msg-
lol...

/me starts debuging via vktRus

PS: the line is enough for the next error msg's

[Edit:] next round plz ;)
Last edited by BlockMen on Sun May 12, 2013 19:25, edited 1 time in total.

User avatar
vktRus
Member
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Post

Code: Select all

01:42:32: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../minetest/.minetest/mods/minetest/landscape/init.lua:22: attempt to index field '?' (a nil value)

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

vktRus wrote:

Code: Select all

01:42:32: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../minetest/.minetest/mods/minetest/landscape/init.lua:22: attempt to index field '?' (a nil value)
fix-attempt #10 or w/e

here you go...

User avatar
vktRus
Member
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Post

Works. But a very high load on the server. You can optimize?
Last edited by vktRus on Tue May 14, 2013 15:50, edited 1 time in total.

User avatar
Iqualfragile
Member
Posts: 160
Joined: Tue Sep 18, 2012 22:11

by Iqualfragile » Post

- rarely the "Dirt with Grass" becomes "Dirt" at height y=13
that happens without your mod it seems to be a bug in minetest
Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cr8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8.

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

Iqualfragile wrote:
- rarely the "Dirt with Grass" becomes "Dirt" at height y=13
that happens without your mod it seems to be a bug in minetest
Hmm... never noticed before so I was pretty sure its caused by my mod.

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

BlockMen wrote:
Iqualfragile wrote:
- rarely the "Dirt with Grass" becomes "Dirt" at height y=13
that happens without your mod it seems to be a bug in minetest
Hmm... never noticed before so I was pretty sure its caused by my mod.
Yes, I have seen that happen without this mod. Idk why though.
Back from the dead!

User avatar
Zombie461
New member
Posts: 5
Joined: Sat Jun 28, 2014 23:15
GitHub: Zombie461
IRC: Zombie461
In-game: Zombie471

Re: [Mod] Landscape [0.1 beta] [landscape]

by Zombie461 » Post

Does it work with Texture packs?

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod] Landscape [0.1 beta] [landscape]

by paramat » Post

Changing the side textures of dirt with grass to the top texture was the very first modification i made to minetest :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests