Open ShivamKR12 opened 3 weeks ago
@pokepetter please help man
How can I reproduce it?
copy this repo: https://github.com/mandaw2014/Rally
download all the dependencies. if you use the latest version of ursina, you will get the same error message
here's the version that i used
here's the console message.
also, is this not a ursina function "render.setShaderAuto()" ?
@pokepetter but it works for ursina 5.2.0
i have no idea about the version in between.
The issue is that sports-car.obj has fewer vertex colors than vertices. So the obj is kind of invalid in that sense.
Looking at the .objs, none of them seems to have been triangulated, which they must be. This is probably the root of the issue.
@pokepetter if it is the cause , then should we do?
If you delete the.mtl files, the models will successfully load. They don't seem to be used, but I'm not sure, there could be a small tint to some materials.
However, there are other issues with the code, like incorrect variables to Audio and incorrect origin value for text. origin = 0
should be origin = (0,0)
.
If you could somehow figure out which specific version Rally was made with, and install that, that would work too.
PS C:\Users\Shivam\Desktop\voxel 3d\Rally-master> py main.py
Hello from the Rally Server!
warning: Tried to instantiate Entity before Ursina. Please create an instance of Ursina first (app = Ursina()) Traceback(filename='C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina\audio.py', lineno=17, function='init', code_context=[' super().init(kwargs)\n'], index=0, positions=Positions(lineno=17, end_lineno=17, col_offset=8, end_col_offset=34)) no audio found with name: /ringtones/clicking.ogg supported formats: .ogg, .wav warning: missing audio clip: /ringtones/clicking.ogg warning: Tried to instantiate Entity before Ursina. Please create an instance of Ursina first (app = Ursina()) Traceback(filename='C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina\audio.py', lineno=17, function='init', code_context=[' super().init(kwargs)\n'], index=0, positions=Positions(lineno=17, end_lineno=17, col_offset=8, end_col_offset=34)) no audio found with name: /ringtones/subtle.ogg supported formats: .ogg, .wav warning: missing audio clip: /ringtones/subtle.ogg warning: Tried to instantiate Entity before Ursina. Please create an instance of Ursina first (app = Ursina()) Traceback(filename='C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina\audio.py', lineno=17, function='init', code_context=[' super().init(*kwargs)\n'], index=0, positions=Positions(lineno=17, end_lineno=17, col_offset=8, end_col_offset=34)) no audio found with name: /ringtones/uplifting.ogg supported formats: .ogg, .wav warning: missing audio clip: /ringtones/uplifting.ogg warning: Tried to instantiate Entity before Ursina. Please create an instance of Ursina first (app = Ursina()) Traceback(filename='C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina\ursinastuff.py', lineno=230, function='call', code_context=[' obj = type.call(cls, args, **kwargs)\n'], index=0, positions=Positions(lineno=230, end_lineno=230, col_offset=14, end_col_offset=49)) info: Using primary monitor: Monitor(x=0, y=0, width=1366, height=768, width_mm=344, height_mm=193, name='\\.\DISPLAY1', is_primary=True) :prc(warning): Invalid integer value for ConfigVariable win-size: 614.4000244140625 :prc(warning): Invalid integer value for ConfigVariable win-size: 1092.800048828125 Known pipe types: wglGraphicsPipe (3 aux display modules not yet loaded.) set window position: Vec2(137, 77) :prc(warning): changing default value for ConfigVariable paste-emit-keystrokes from '1' to '0'. :pnmimage:png(warning): iCCP: known incorrect sRGB profile package_folder: C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina asset_folder: . set fullscreen to True Monitor(x=0, y=0, width=1366, height=768, width_mm=344, height_mm=193, name='\\.\DISPLAY1', is_primary=True) set window position: Vec2(0, 0) ---------------set size to: Vec2(1366, 768) read obj at: assets\cars\sports-car.obj read obj at: assets\cars\sports-car.obj Traceback (most recent call last): :thread(error): Exception occurred within PythonThread PythonThread-0 Traceback (most recent call last): File "C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina\mesh.py", line 90, in _set_array_data File "C:\Users\Shivam\AppData\Local\Programs\Python\Python312\Lib\site-packages\ursina\mesh.py", line 90, in _set_array_data vmem[:] = a vmem[:] = a