Gothic Online Forums
[Client] GUI Creator - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html)
+--- Forum: Resources (https://archive.gothic-online.com/forum-14.html)
+---- Forum: Scripts (https://archive.gothic-online.com/forum-17.html)
+---- Thread: [Client] GUI Creator (/thread-2652.html)



[Client] GUI Creator - Quarchodron - 06.05.2019

GUI Creator

Client side script to fast for quick positioning draws and textures. It is very unstable version of code. ( 
This thread will be completed after i repair all bugs you guys report me in this topic. 

Quick tutorial 



F12 - Open manager.
Drag the card by pressing by the top.
Drag the corners of the current element to change the size of texture.



GIT: https://gitlab.com/PMalin/gui-creator

Changes: (10.05.2019)
-- add new button (COPY).
-- some small fixes.
Changes: (11.05.2019)
-- add new button (MOVE UP).
-- some small fixes.
-- and some other small stuff.

Preview: 
https://s5.ifotos.pl/img/Beztytulu_qshaqss.png
https://s6.ifotos.pl/img/Beztytulu_qshaqaa.png


RE: [Client] GUI Creator - Patrix - 09.05.2019

IMO you should start (so do i) making more git repositories.
Maybe this would help to encourage others to develop your script, and make it even more better.


RE: [Client] GUI Creator - Quarchodron - 10.05.2019

https://gitlab.com/PMalin/gui-creator


RE: [Client] GUI Creator - Quarchodron - 11.05.2019

Update 0.2


RE: [Client] GUI Creator - Arkhan - 12.08.2019

Do you still work on this script?
Code:
[2019-08-12 21:15:29] [squirrel] Error runtime: 'GM/GUI/CREATOR/Server/file.nut' (Ln: 28): the stream is invalid
[2019-08-12 21:15:29] -== Stack Dump: ==-
[2019-08-12 21:15:29] 1: Function: 'saveString' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 75
[2019-08-12 21:15:29] 2: Function: 'packetHandler' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 48
[2019-08-12 21:15:29]
-== Local varaiable: ==-
[2019-08-12 21:15:29] + integer: @ITERATOR@ (1)
[2019-08-12 21:15:29] + integer: char (108)
[2019-08-12 21:15:29] + integer: @INDEX@ (0)
[2019-08-12 21:15:29] + string: text (local text = Texture(6206,-32,2000,2000,"Map_NewWorld.TGA");
)
[2019-08-12 21:15:29] + instance: this
[2019-08-12 21:15:29] + string: val (local text = Texture(6206,-32,2000,2000,"Map_NewWorld.TGA");)
[2019-08-12 21:15:29] + integer: @INDEX@ (0)
[2019-08-12 21:15:29] + instance: resultFile
[2019-08-12 21:15:29] + table: this
[2019-08-12 21:15:29] + integer: id (292)
[2019-08-12 21:15:29] + instance: packet
[2019-08-12 21:15:29] + integer: pid (0)
[2019-08-12 21:15:29] + table: this
[2019-08-12 21:15:29] [squirrel] Error runtime: 'GM/GUI/CREATOR/Server/file.nut' (Ln: 28): the stream is invalid
[2019-08-12 21:15:29] -== Stack Dump: ==-
[2019-08-12 21:15:29] 1: Function: 'saveTemplate' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 85
[2019-08-12 21:15:29] 2: Function: 'packetHandler' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 57
[2019-08-12 21:15:29]
-== Local varaiable: ==-
[2019-08-12 21:15:29] + integer: @ITERATOR@ (1)
[2019-08-12 21:15:29] + integer: char (50)
[2019-08-12 21:15:29] + integer: @INDEX@ (0)
[2019-08-12 21:15:29] + string: text (2000 2000 6206 -32 255 255 255 Map_NewWorld.TGA 0 255 0 0 0 500 500
)
[2019-08-12 21:15:29] + instance: this
[2019-08-12 21:15:29] + string: val (2000 2000 6206 -32 255 255 255 Map_NewWorld.TGA 0 255 0 0 0 500 500)
[2019-08-12 21:15:29] + integer: @INDEX@ (0)
[2019-08-12 21:15:29] + instance: resultFile
[2019-08-12 21:15:29] + table: this
[2019-08-12 21:15:29] + integer: id (295)
[2019-08-12 21:15:29] + instance: packet
[2019-08-12 21:15:29] + integer: pid (0)
[2019-08-12 21:15:29] + table: this
[2019-08-12 21:15:30] [squirrel] Error runtime: 'GM/GUI/CREATOR/Server/file.nut' (Ln: 28): the stream is invalid
[2019-08-12 21:15:30] -== Stack Dump: ==-
[2019-08-12 21:15:30] 1: Function: 'saveString' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 75
[2019-08-12 21:15:30] 2: Function: 'packetHandler' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 48
[2019-08-12 21:15:30]
-== Local varaiable: ==-
[2019-08-12 21:15:30] + integer: @ITERATOR@ (1)
[2019-08-12 21:15:30] + integer: char (108)
[2019-08-12 21:15:30] + integer: @INDEX@ (0)
[2019-08-12 21:15:30] + string: text (local text = Texture(6206,-32,2000,2000,"Map_NewWorld.TGA");
)
[2019-08-12 21:15:30] + instance: this
[2019-08-12 21:15:30] + string: val (local text = Texture(6206,-32,2000,2000,"Map_NewWorld.TGA");)
[2019-08-12 21:15:30] + integer: @INDEX@ (0)
[2019-08-12 21:15:30] + instance: resultFile
[2019-08-12 21:15:30] + table: this
[2019-08-12 21:15:30] + integer: id (292)
[2019-08-12 21:15:30] + instance: packet
[2019-08-12 21:15:30] + integer: pid (0)
[2019-08-12 21:15:30] + table: this
[2019-08-12 21:15:30] [squirrel] Error runtime: 'GM/GUI/CREATOR/Server/file.nut' (Ln: 28): the stream is invalid
[2019-08-12 21:15:30] -== Stack Dump: ==-
[2019-08-12 21:15:30] 1: Function: 'saveTemplate' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 85
[2019-08-12 21:15:30] 2: Function: 'packetHandler' File: 'GM/GUI/CREATOR/Server/creator.nut' Line: 57
[2019-08-12 21:15:30]
-== Local varaiable: ==-
[2019-08-12 21:15:30] + integer: @ITERATOR@ (1)
[2019-08-12 21:15:30] + integer: char (50)
[2019-08-12 21:15:30] + integer: @INDEX@ (0)
[2019-08-12 21:15:30] + string: text (2000 2000 6206 -32 255 255 255 Map_NewWorld.TGA 0 255 0 0 0 500 500
)
[2019-08-12 21:15:30] + instance: this
[2019-08-12 21:15:30] + string: val (2000 2000 6206 -32 255 255 255 Map_NewWorld.TGA 0 255 0 0 0 500 500)
[2019-08-12 21:15:30] + integer: @INDEX@ (0)
[2019-08-12 21:15:30] + instance: resultFile
[2019-08-12 21:15:30] + table: this
[2019-08-12 21:15:30] + integer: id (295)
[2019-08-12 21:15:30] + instance: packet
[2019-08-12 21:15:30] + integer: pid (0)
[2019-08-12 21:15:30] + table: this

Also, yes, all the paths to scripts are correct, and I did not change anything inside. It worked perfectly until I "saved", and closed the creator. Then I couldn't turn it back on, and the only thing left was the last draw I created.


RE: [Client] GUI Creator - Patrix - 12.08.2019

the stream is invalid

That means, that propably script can't create a file, because the given directory doesn't exists.


RE: [Client] GUI Creator - Arkhan - 12.08.2019

I created the directory. Now it shows a similar error, but with different script.
Code:
[2019-08-12 23:02:45] [squirrel] Error runtime: 'GM/Server/file.nut' (Ln: 81): the stream is invalid
[2019-08-12 23:02:45] -== Stack Dump: ==-
[2019-08-12 23:02:45] 1: Function: 'saveTemplate' File: 'GM/Module/GUI/CREATOR/Server/creator.nut' Line: 85
[2019-08-12 23:02:45] 2: Function: 'packetHandler' File: 'GM/Module/GUI/CREATOR/Server/creator.nut' Line: 57
[2019-08-12 23:02:45]
-== Local varaiable: ==-
[2019-08-12 23:02:45] + integer: @ITERATOR@ (1)
[2019-08-12 23:02:45] + integer: char (51)
[2019-08-12 23:02:45] + integer: @INDEX@ (0)
[2019-08-12 23:02:45] + string: text (39 7659 255 255 255 0 FONT_OLD_10_WHITE_HI.TGA 0 255 F8 - Animacje
)
[2019-08-12 23:02:45] + instance: this
[2019-08-12 23:02:45] + string: val (39 7659 255 255 255 0 FONT_OLD_10_WHITE_HI.TGA 0 255 F8 - Animacje)
[2019-08-12 23:02:45] + integer: @INDEX@ (0)
[2019-08-12 23:02:45] + instance: resultFile
[2019-08-12 23:02:45] + table: this
[2019-08-12 23:02:45] + integer: id (295)
[2019-08-12 23:02:45] + instance: packet
[2019-08-12 23:02:45] + integer: pid (0)
[2019-08-12 23:02:45] + table: this

The issue has been resolved.