mcsab / stk-editor Goto Github PK
View Code? Open in Web Editor NEWSuperTuxKart - Track Editor
License: GNU General Public License v3.0
SuperTuxKart - Track Editor
License: GNU General Public License v3.0
@mcsab Atm img and font are in the current working directory. For a complete install with stk it would be better if those directories are moved to either:
I just tried compiling your editor, and I have the following crash:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000414966 in Library::Library (this=0xe24590, name=..., buffer_size=32) at toolbox/library.cpp:23
23 const IFileList* file_list = dir->getFileList();
(gdb) print dir
$1 = (irr::io::IFileArchive *) 0x7fffffffd930
(gdb) print *dir
$2 = {<error reading variable>
(gdb) where
#0 0x0000000000414966 in Library::Library (this=0xe24590, name=..., buffer_size=32) at toolbox/library.cpp:23
#1 0x0000000000412922 in EnvPanel::init (this=0xe0ed10) at toolbox/envpanel.cpp:27
#2 0x0000000000413178 in EnvPanel::getEnvPanel (wndw=0xe1e000) at toolbox/envpanel.cpp:83
#3 0x000000000041226b in ToolBox::init (this=0xe00830) at toolbox/toolbox.cpp:27
#4 0x00000000004124d9 in ToolBox::getToolBox () at toolbox/toolbox.cpp:51
#5 0x000000000040fd75 in Editor::init (this=0xb38f20) at editor.cpp:164
#6 0x000000000040fe42 in Editor::getEditor (screen_size=...) at editor.cpp:179
#7 0x000000000040bc2e in main (argc=1, argv=0x7fffffffdd78) at main.cpp:5
Perhaps that's caused by not having anything in the libraries (and therefore a duplicate of #3)? I get:
Could not open file of texture: libraries/terrain/t1.png
Could not open file of texture: libraries/terrain/t2.jpg
Could not open file of texture: libraries/terrain/t3.jpg
Could not open file of texture: libraries/terrain/t4.jpg
Could not open file of texture: img/scale.png
Could not open file of texture: libraries/terrain/t1.png
Could not open file of texture: libraries/terrain/t2.jpg
Could not open file of texture: libraries/terrain/t3.jpg
Could not open file of texture: libraries/terrain/t4.jpg
Could not create archive for: /home/joerg/local/supertuxkart/editor/libraries/env/xml
printed to stdout.
It didn't compile for me until I added -lbz2
to the LDFLAGS. Afterwards It didn't start until running mkdir -p libraries/env/xml
because the path is not included in git.
Btw: The standard paths for the irrlicht-dev package on ubuntu are different to yours, so I had to change to change two lines:
IRR_INCLUDE ?= /usr/include/irrlicht
IRR_LIB ?= /usr/lib/x86_64-linux-gnu/libIrrlicht.a
Maybe you can add a check if Irrlicht is in this path.
This is the bug already reported on IRC, I just want it to be tracked here.
Program received signal SIGSEGV, Segmentation fault.
0x000000000040e6d4 in irr::core::string<char, irr::core::irrAllocator<char> >::size (this=0x8) at /usr/include/irrlicht/irrString.h:483
483 return used-1;
(gdb) bt
#0 0x000000000040e6d4 in irr::core::string<char, irr::core::irrAllocator<char> >::size (this=0x8) at /usr/include/irrlicht/irrString.h:483
#1 0x000000000040e497 in irr::core::string<char, irr::core::irrAllocator<char> >::operator= (this=0x7fffffffcfe0, other=...) at /usr/include/irrlicht/irrString.h:316
#2 0x000000000040e441 in irr::core::string<char, irr::core::irrAllocator<char> >::string (this=0x7fffffffcfe0, other=...) at /usr/include/irrlicht/irrString.h:92
#3 0x000000000040d5be in irr::io::SNamedPath::operator irr::core::string<char, irr::core::irrAllocator<char> > (this=0x8) at /usr/include/irrlicht/path.h:62
#4 0x0000000000416667 in Track::build (this=0x8074a70) at src/track.cpp:370
#5 0x000000000044bbd0 in Viewport::build (this=0x9e2570) at src/viewport/viewport.cpp:641
#6 0x00000000004081f7 in Editor::buttonClicked (this=0x69e2d0, ID=3) at src/editor.cpp:80
#7 0x000000000040b189 in Editor::OnEvent (this=0x69e2d0, event=...) at src/editor.cpp:697
#8 0x00007ffff7a5af2d in irr::gui::CGUIButton::OnEvent(irr::SEvent const&) () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
#9 0x00007ffff7a85a59 in irr::gui::CGUIEnvironment::postEventFromUser(irr::SEvent const&) () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
#10 0x00007ffff7a56929 in irr::CIrrDeviceStub::postEventFromUser(irr::SEvent const&) () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
#11 0x00007ffff7a4cba6 in irr::CIrrDeviceLinux::run() () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
#12 0x000000000040abbd in Editor::run (this=0x69e2d0) at src/editor.cpp:563
#13 0x0000000000413e40 in main (argc=1, argv=0x7fffffffde08) at src/main.cpp:11
(gdb) bt full
#0 0x000000000040e6d4 in irr::core::string<char, irr::core::irrAllocator<char> >::size (this=0x8) at /usr/include/irrlicht/irrString.h:483
No locals.
#1 0x000000000040e497 in irr::core::string<char, irr::core::irrAllocator<char> >::operator= (this=0x7fffffffcfe0, other=...) at /usr/include/irrlicht/irrString.h:316
p = 0x7fffffffcff0 "0!E"
#2 0x000000000040e441 in irr::core::string<char, irr::core::irrAllocator<char> >::string (this=0x7fffffffcfe0, other=...) at /usr/include/irrlicht/irrString.h:92
No locals.
#3 0x000000000040d5be in irr::io::SNamedPath::operator irr::core::string<char, irr::core::irrAllocator<char> > (this=0x8) at /usr/include/irrlicht/path.h:62
No locals.
#4 0x0000000000416667 in Track::build (this=0x8074a70) at src/track.cpp:370
i = 3
p = {array = 0x29ab7c0 "/home/konsti/stk/data/tracks/file_name", allocated = 39, used = 39, allocator = {_vptr.irrAllocator = 0x452130 <vtable for irr::core::irrAllocator<char>+16>}}
mb = 0x884870
smesh = {<irr::scene::IMesh> = {<irr::IReferenceCounted> = {_vptr.IReferenceCounted = 0x4555e8 <vtable for irr::scene::SMesh+136>, DebugName = 0x0, ReferenceCounter = 1}, _vptr.IMesh = 0x455578 <vtable for irr::scene::SMesh+24>}, MeshBuffers = {
data = 0x299b780, allocated = 6, used = 1, allocator = {_vptr.irrAllocator = 0x4556d0 <vtable for irr::core::irrAllocator<irr::scene::IMeshBuffer*>+16>}, strategy = irr::core::ALLOC_STRATEGY_DOUBLE, free_when_destroyed = true, is_sorted = false},
BoundingBox = {MinEdge = {X = -1, Y = -1, Z = -1}, MaxEdge = {X = 1, Y = 1, Z = 1}}}
m = {TextureLayer = {{Texture = 0x89df50, TextureWrapU = 0 '\000', TextureWrapV = 0 '\000', BilinearFilter = true, TrilinearFilter = false, AnisotropicFilter = 0 '\000', LODBias = 0 '\000', MatrixAllocator = {
_vptr.irrAllocator = 0x452170 <vtable for irr::core::irrAllocator<irr::core::CMatrix4<float> >+16>}, TextureMatrix = 0x0}, {Texture = 0x89df50, TextureWrapU = 0 '\000', TextureWrapV = 0 '\000', BilinearFilter = true, TrilinearFilter = false,
AnisotropicFilter = 0 '\000', LODBias = 0 '\000', MatrixAllocator = {_vptr.irrAllocator = 0x452170 <vtable for irr::core::irrAllocator<irr::core::CMatrix4<float> >+16>}, TextureMatrix = 0x0}, {Texture = 0x1a84360, TextureWrapU = 0 '\000',
TextureWrapV = 0 '\000', BilinearFilter = true, TrilinearFilter = false, AnisotropicFilter = 0 '\000', LODBias = 0 '\000', MatrixAllocator = {_vptr.irrAllocator = 0x452170 <vtable for irr::core::irrAllocator<irr::core::CMatrix4<float> >+16>},
TextureMatrix = 0x0}, {Texture = 0x14dc2f0, TextureWrapU = 0 '\000', TextureWrapV = 0 '\000', BilinearFilter = true, TrilinearFilter = false, AnisotropicFilter = 0 '\000', LODBias = 0 '\000', MatrixAllocator = {
_vptr.irrAllocator = 0x452170 <vtable for irr::core::irrAllocator<irr::core::CMatrix4<float> >+16>}, TextureMatrix = 0x0}}, MaterialType = 24, AmbientColor = {color = 4294967295}, DiffuseColor = {color = 4294967295}, EmissiveColor = {color = 0},
SpecularColor = {color = 4294967295}, Shininess = 0, MaterialTypeParam = 0, MaterialTypeParam2 = 0, Thickness = 1, ZBuffer = 1 '\001', AntiAliasing = 1 '\001', ColorMask = 15 '\017', ColorMaterial = 1 '\001', BlendOperation = irr::video::EBO_NONE,
PolygonOffsetFactor = 0 '\000', PolygonOffsetDirection = irr::video::EPO_FRONT, Wireframe = false, PointCloud = false, GouraudShading = true, Lighting = true, ZWriteEnable = true, BackfaceCulling = false, FrontfaceCulling = false, FogEnable = false,
NormalizeNormals = false, UseMipMaps = true}
scene = <unvollständiger Typ>
file = 0x8902d0
track = <unvollständiger Typ>
sm = 0x6f
node = 0x7ffff687f5f0 <malloc+96>
device = 0x6acdd0
writer = 0x893320
mat = <unvollständiger Typ>
name = {array = 0x0, allocated = 0, used = 0, allocator = {_vptr.irrAllocator = 0x0}}
i = 0
#5 0x000000000044bbd0 in Viewport::build (this=0x9e2570) at src/viewport/viewport.cpp:641
No locals.
#6 0x00000000004081f7 in Editor::buttonClicked (this=0x69e2d0, ID=3) at src/editor.cpp:80
rp = 0x6a29f0
---Type <return> to continue, or q <return> to quit---
ep = 0x6a19a0
#7 0x000000000040b189 in Editor::OnEvent (this=0x69e2d0, event=...) at src/editor.cpp:697
rp = 0x0
id = 3
#8 0x00007ffff7a5af2d in irr::gui::CGUIButton::OnEvent(irr::SEvent const&) () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
No symbol table info available.
#9 0x00007ffff7a85a59 in irr::gui::CGUIEnvironment::postEventFromUser(irr::SEvent const&) () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
No symbol table info available.
#10 0x00007ffff7a56929 in irr::CIrrDeviceStub::postEventFromUser(irr::SEvent const&) () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
No symbol table info available.
#11 0x00007ffff7a4cba6 in irr::CIrrDeviceLinux::run() () from /usr/lib/x86_64-linux-gnu/libIrrlicht.so.1.8
No symbol table info available.
#12 0x000000000040abbd in Editor::run (this=0x69e2d0) at src/editor.cpp:563
current_time = 42955
last_time = 42955
#13 0x0000000000413e40 in main (argc=1, argv=0x7fffffffde08) at src/main.cpp:11
editor = 0x69e2d0
@mcsab This helps with windows, where some people might just search for supertuxkart (and not stk) in order to find the editor.
Linked file is the valgrind log and stdout from the editor.
http://www.mediafire.com/download/318k830u3y8jfum/valgrind.zip
As I see in README file, you suggest to use your patched irrlicht to run stk-editor. But this version cannot be compiled without modifications. This is probably problem with mesa 10 (which is already solved in stkirrlicht).
g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -fexpensive-optimizations -O3 -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1 -c -o COpenGLDriver.o COpenGLDriver.cpp
In file included from COpenGLDriver.h:25:0,
from COpenGLDriver.cpp:5:
COpenGLExtensionHandler.h:1236:3: error: ‘PFNGLBLENDEQUATIONPROC’ does not name a type
PFNGLBLENDEQUATIONPROC pGlBlendEquation;
^
COpenGLExtensionHandler.h: In member function ‘void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)’:
COpenGLExtensionHandler.h:2566:6: error: ‘pGlBlendEquation’ was not declared in this scope
if (pGlBlendEquation)
^
<wbudowane>: polecenia dla obiektu 'COpenGLDriver.o' nie powiodły się
make: *** [COpenGLDriver.o] Błąd 1
Can default system irrlicht or stkirrlicht be used to run stk-editor? Or are your changes urgently needed to run it? If they are necessary, could you write somewhere (eg. in README) which changes are needed?
Greetings,
I found in creating my first track there was some difficulty creating a level ground for karts to travel on. Once ground was raised or lowered, it was difficult to determine how to make the ground flat enough for karts to travel on.
The track editor has some advantages over Blender that I find very exciting, but it is difficult at this time to create a track without the use of "ground leveling" tool. I believe that this could be created as part of the spade tool, or as its own tool altogether.
This tool would allow ground that was previously raised or lowered to be returned to a default height that the user can specify in the toolbar to the right of the application window.
Thank you for listening to my request, have a great day.
At least for windows we need a .ico file.
Here a bug report originally from stk-code, which belongs here (#1831 on stk-code)
@vlj: In Windows the editor try to launch stk from cmd and uses absolute path.Issue is, the absolute path is something like "E:\Program Files..." and cmd.exe doesnt accept space in the executable path.
I'm not sure if there is something wrong in code or I'm doing something wrong... Few words more in README would be great.
I patched your irrlicht version to allow to compile it with mesa 10. Now I'm able to compile STK editor. But what's next? Where should I place executable file? I tried to do:
> supertuxkart
>>> data
>>>>> editor
>>>>> karts
>>>>> tracks
>>>>> textures
>>>>> (...)
>>> stk-editor
But it says that it cannot find textures directory: Could not create archive for: textures
and it segfaults.
(gdb) bt full
#0 0x0000000000422489 in NewDialogWndw::reallocate (this=0x0, ss=...)
at src/gui/new_dialog_wndw.cpp:83
No locals.
#1 0x000000000041993b in Editor::run (this=0xb81310) at src/editor.cpp:697
current_time = 68
last_time = 0
#2 0x000000000041e9b5 in main (argc=1, argv=0x7fffffffe618) at src/main.cpp:11
editor = 0xb81310
I also tried to place it directly into data folder. In this case it doesn't report any issues, but it still cannot run (segfault with large backtrace).
When I create a new track, The editor looks like
But when I then go to the direline tab, click on 'add control point' and click on the ground, it looks like
(Note that the points added are still shown)
It stays invisible untilI clicking on 'Create New Road Mesh'. This click makes the ground kind of flickering, meaning it's sometimes visible, sometimes invisble, depending on the position of the mouse.
The VS project does not work in release mode. First the include paths are missing, then
1>------ Build started: Project: stk_editor, Configuration: Release Win32 ------
1> B3DMeshWriter.cpp
1> editor.cpp
1>..\..\src\editor.cpp(579): error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(112) : see declaration of 'strcpy'
1>..\..\src\editor.cpp(584): error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(112) : see declaration of 'strcpy'
1> element.cpp
1> track.cpp
1>..\..\src\track.cpp(143): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
1>..\..\src\track.cpp(539): warning C4244: 'initializing' : conversion from 'PHYSFS_uint64' to 'unsigned int', possible loss of data
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Note that we can not include a debug version (prohibited by MS license).
Hello,
im compiled the editor under ubuntu 14.04. I try to start an I got the follow message:
Could not create archive for: textures
Could not create archive for: /home/chris/stk/stk-editor-master/build/lib/textures
Could not create archive for: /home/chris/stk/stk-editor-master/build/lib/textures
Could not create archive for: /home/chris/stk/stk-editor-master/build/lib/textures
If I use the 0.9.1 & 0.9. binarys form ( http://supertuxkart.sourceforge.net/) I got the same message /failture.
Has anyone what i can do ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.