Page 1 of 1

[Mod] Landscape [0.1 beta] [landscape]

PostPosted: Wed Mar 20, 2013 19:19
by BlockMen
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.

PostPosted: Wed Mar 20, 2013 19:34
by Calinou
"Better Grass" reimplementation spotted! :)

PostPosted: Wed Mar 20, 2013 19:50
by BlockMen
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.

PostPosted: Fri Mar 22, 2013 19:25
by 12Me21
Couldn't you just change the texture for grass to have the green on the sides too?

PostPosted: Sat Mar 23, 2013 01:02
by BlockMen
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.

PostPosted: Sun Apr 07, 2013 19:23
by 12Me21
oh, I see now

PostPosted: Tue Apr 09, 2013 08:10
by Pavel_S
Good mod=).

PostPosted: Fri May 10, 2013 18:13
by vktRus
Stable version.

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
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))

PostPosted: Fri May 10, 2013 18:55
by rubenwardy
Nice.

PostPosted: Sat May 11, 2013 17:35
by BlockMen
vktRus wrote:Stable version.

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
-error msg-


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

PostPosted: Sat May 11, 2013 18:30
by vktRus
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
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*))

PostPosted: Sat May 11, 2013 18:34
by sfan5
Nice!
This add "Better Grass" like in MC

PostPosted: Sun May 12, 2013 10:54
by BlockMen
vktRus wrote:
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
-error msg-



Ok, but fixed now ;)

PostPosted: Sun May 12, 2013 14:38
by vktRus
:)

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
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*))

PostPosted: Sun May 12, 2013 19:03
by BlockMen
vktRus wrote::)

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
-error msg-


I accept the challenge :P

Give it another try

PostPosted: Sun May 12, 2013 19:15
by vktRus
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
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*))

PostPosted: Sun May 12, 2013 19:25
by BlockMen
vktRus wrote:
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
-error msg-


lol...

/me starts debuging via vktRus

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

[Edit:] next round plz ;)

PostPosted: Sun May 12, 2013 21:45
by vktRus
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
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)

PostPosted: Sun May 12, 2013 22:31
by BlockMen
vktRus wrote:
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
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...

PostPosted: Tue May 14, 2013 15:50
by vktRus
Works. But a very high load on the server. You can optimize?

PostPosted: Thu May 16, 2013 11:59
by Iqualfragile
- rarely the "Dirt with Grass" becomes "Dirt" at height y=13

that happens without your mod it seems to be a bug in minetest

PostPosted: Thu May 16, 2013 14:27
by BlockMen
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.

PostPosted: Thu May 16, 2013 16:02
by Evergreen
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.

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

PostPosted: Mon Jun 30, 2014 00:03
by Zombie461
Does it work with Texture packs?

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

PostPosted: Mon Jun 30, 2014 00:17
by paramat
Changing the side textures of dirt with grass to the top texture was the very first modification i made to minetest :)