Onomatopoeia

Post Reply
User avatar
solars
Member
Posts: 672
Joined: Sat Jul 20, 2013 15:16
Contact:

Onomatopoeia

by solars » Post

Hi everyone!

I wan't a isometric image of a map. So I tried to use Onomatopoeia.

With both versions. (That from Zeg9 and that from xyzz.)
None of them worked at my PC.

This is the error from the Zeg9 version:

Code: Select all

$ ./mapper.py
0.0% done
tiling -8 -12
Traceback (most recent call last):
  File "./mapper.py", line 194, in <module>
    stupidMakeTiles(*coord)
  File "./mapper.py", line 166, in stupidMakeTiles
    y = chunks3(canvas, x + step, z + step, step)
  File "./mapper.py", line 118, in chunks3
    chunk, y = makeChunk(x, z)
  File "./mapper.py", line 101, in makeChunk
    maxy = max(maxy, drawBlock(canvas, cx, by, cz, (BLOCK_SIZE/2 * (cx - cz + 1) - NODE_SIZE/2, BLOCK_SIZE/4 * (BLOCKS_PER_CHUNK - cz - cx) - NODE_SIZE/2)))
  File "./mapper.py", line 84, in drawBlock
    map_block = map.getBlock(bx, by, bz)
  File "/mnt/daten/solar/Software/onomatopoeia-master_1/map.py", line 76, in getBlock
    ver = readU8(f)
  File "/mnt/daten/solar/Software/onomatopoeia-master_1/util.py", line 22, in readU8
    return ord(f.read(1))
TypeError: ord() expected a character, but string of length 0 found
The Errors at the xyzz version are similar with different line numbers.

I copied the map.sqlite in the directory of the programm.
The version of Minetest is 0.5.0-dev, the operating system is a Debian Sid GNU/Linux (amd64-Version)
The Python Version is 2.7.14.

Any Idea, what went wrong?
Or have anybody this script running successfully? When yes, what is the operating system, and which version of Minetest?
My big Minetest map Karsthafen: English thread / German thread / Youtube / German webpage

User avatar
LMD
Member
Posts: 1022
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: Onomatopoeia

by LMD » Post

The error obviously is in xyzz's code. f has length 0, which he should have considered. Open an issue on GitHub.
My stuff: Projects - Mods - Website

twoelk
Member
Posts: 1476
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: Onomatopoeia

by twoelk » Post

I don't think Zeg9 or xyzz still have much interest in Onomatopoeia.
The project seems to have been abandoned for quite a while.
Might be high time somebody adopted it.

User avatar
TumeniNodes
Member
Posts: 2895
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: Onomatopoeia

by TumeniNodes » Post

As twoelk states, both repos are quite old, and work is required to get them up-to-date with 5.0.0 (even 0.4.17.1)

so unless someone adopts the code, it will simply fade into obscurity.
Might, (stress on might) be a possibility to mention Minetest Mods taking the code in. I would try that first
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

R-One
Member
Posts: 160
Joined: Wed Dec 20, 2017 23:06
Location: Nice, France

Re: Onomatopoeia

by R-One » Post

hello there is the fork of HybridDog that still works

https://github.com/HybridDog/onomatopoeia

User avatar
solars
Member
Posts: 672
Joined: Sat Jul 20, 2013 15:16
Contact:

Re: Onomatopoeia

by solars » Post

Edit: Ooops, I had written in German accidentally.
Here the same in English:

------------------------

I think it's great that this tool is being developed further.

HybridDog, if your read this here:

The actual version has a bug. Parts of the map are ignored, like you can see on the following screenshots:
Image
error1.jpg
error1.jpg (303.94 KiB) Viewed 28 times
[/size]
Image
error2.jpg
error2.jpg (167.84 KiB) Viewed 28 times
[/size]

It would be fantastic, if you can find this bug, and eliminate it.

At the test with the images above, I used the actual version of Karsthafen from my computer. But the bug showed with old versions of the map too.
My big Minetest map Karsthafen: English thread / German thread / Youtube / German webpage

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests