Page 1 of 1

addon upload question

PostPosted: 01 Jan 2019, 20:38
by rubberduck
I finished my track canyon 42 (https://forum.freegamedev.net/viewtopic.php?f=18&t=8214) and want to upload it to addons.

I created my own library nodes. Is there a special structure how track and library nodes need to be organized (directory structure). Are own library nodes even supported for addons?

Re: addon upload question

PostPosted: 02 Jan 2019, 18:18
by rubberduck
i tried to upload it now to addons, but I got an error that the file size is too big. where is the limit?? ( I already reduced the size from 68 to 34 MB by excluding source files and reducing resolution of some textures now).
There is no information about the size limit on the upload page too.

Re: addon upload question

PostPosted: 02 Jan 2019, 18:59
by GeekPenguinBR

Re: addon upload question

PostPosted: 03 Jan 2019, 17:35
by rubberduck
i made some progress, but I got an error which comes from a materials.xml file from custom library nodes

{l Code}: {l Select All Code}
FileSystem Exception: Error while trying to flatten the archive. This might happen because files from subdirectories have the same name as files from the root directory. Error = `Failed to move file = "/tmp/stk-uploads/1546532755-canyon_42.zip/library/stklib_barrel_a/materials.xml" to new location = "/tmp/stk-uploads/1546532755-canyon_42.zip/materials.xml" because it already exists`


I have a structure like this:

regular track files (track.xml, materials.xml, textures...)
library (folder)
>> stklib_...(subfolders for lib nodes)
>>>> lib node content (node.xml, materials.xml...)

How can I fix this??

Re: addon upload question

PostPosted: 03 Jan 2019, 20:58
by QwertyChouskie
Another weird "feature" of stkaddons, it flattens zips. Bug report: https://github.com/supertuxkart/stk-addons/issues/79

Re: addon upload question

PostPosted: 04 Jan 2019, 18:35
by rubberduck
I have these options now:

1: "merge" the library nodes into the track

2: wait until library nodes are supported / a bug is fixed on the addons page, so that I can upload the track without problems

I think I will choose the first option and retry the upload again (in a few days)

Re: addon upload question

PostPosted: 05 Jan 2019, 00:10
by MTres19
Please do NOT merge library nodes into the track. If you do, the textures they use will reference the file you imported them from and we'll have the same problem that I'm working on fixing with Sven's track (Black Forest). If they're good enough to be integrated into the game, they should be posted separately. Remember, always design your track as if it were going to be part of the core game. That way there are no problems with Blender keeping track of texture/library files.

Re: addon upload question

PostPosted: 05 Jan 2019, 19:29
by rubberduck
the track including all library nodes can be found here: https://platen-software.de/sebastian/canyon_42_RC2.zip
including source files and license information.
(I also tried to post them here STK assets subforum, but these are too large for an attachment here)

Re: addon upload question

PostPosted: 08 Jan 2019, 19:07
by rubberduck
Still no update ?!
The library nodes can be found in the download link for the track in the post above...

Re: addon upload question

PostPosted: 09 Jan 2019, 01:08
by Auria
Hi, so I think there are 2 issues IIUC?

1) library nodes can be integrated inside a track, just create a directory named "library" at the root of your track

2) given the size that's too large for the addons, there's a few issues. First, split the blend files out of this please, exported tracks and blender files (including backup blend1 files) should be submitted in two different packages (one package containing only the exported files and texture, another containing the sources). Same thing for the XCF gimp files, they should not be part of the exported package. Then there are some HUGE textures in there, for instance I've spotted a few 2048x2048 png normal maps taking over 7 MB, that would use a lot of vram and probably require a 4k screen to notice, they might be a way to use 1024 textures there, perhaps with smarter texture mapping ?

Re: addon upload question

PostPosted: 09 Jan 2019, 18:58
by rubberduck
I tried to upload it multiple times (the first try I used the big zip including all the source files).
Then I created a package with smaller textures and excluding source files. The following download file is actually the package I tried to upload, which is smaller < 30 MB

https://platen-software.de/sebastian/canyon_42.zip

When I tried to upload that it gave me this error:
{l Code}: {l Select All Code}
FileSystem Exception: Error while trying to flatten the archive. This might happen because files from subdirectories have the same name as files from the root directory. Error = `Failed to move file = "/tmp/stk-uploads/1546532755-canyon_42.zip/library/stklib_barrel_a/materials.xml" to new location = "/tmp/stk-uploads/1546532755-canyon_42.zip/materials.xml" because it already exists`


I also created a directory called "library" in this case.

Re: addon upload question

PostPosted: 09 Jan 2019, 22:58
by QwertyChouskie
Yeah, the problem is stkaddons in flattening the directory when it shouldn't. Auria can you get https://github.com/supertuxkart/stk-addons/issues/79 fixed so this can be uploaded?

Re: addon upload question

PostPosted: 13 Jan 2019, 02:52
by Auria
QwertyChouskie {l Wrote}:Yeah, the problem is stkaddons in flattening the directory when it shouldn't. Auria can you get https://github.com/supertuxkart/stk-addons/issues/79 fixed so this can be uploaded?


I am not very familiar with the addons website code, but hopefully Leyyin will have the time to take a look