Giter Site home page Giter Site logo

opentoontowntools / openleveleditor Goto Github PK

View Code? Open in Web Editor NEW
55.0 8.0 14.0 13.43 MB

An open sourced modernized version of Disney's in-house Toontown Online level editor used to create .dna files.

License: MIT License

Batchfile 0.01% Python 99.81% Pascal 0.01% GLSL 0.11% PLSQL 0.07%
toontown toontown-online dna-files panda panda3d panda3d-game-engine panda3d-editor toontown-offline corporate-clash toontown-corporate-clash

openleveleditor's Introduction

thumbnail

An open sourced modernized version of Disney's in-house Toontown Online level editor used to create .dna files.

overviewimage

Development Progress

  • This project is considered fully released and is entirely usable with little crashes and bugs. If you discover a crash or bug please create an issue.
  • This project is still being actively developed with new features and fixes. Feel free to contribute new features or fixes.

Major New Features

Now that the editor is fully released? What's next?

  • New features are still actively being developed with no plans of stopping anytime soon!
  • Some features planned for the future are:
    • Drive mode will be making a return in the future
    • Better mouse positioning widgets
    • and much more!

Requirements

IMPORTANT

  • You need a Panda3D build that INCLUDES commit b507c88 and 7eba53c as these are CRITICAL fixes for the editor. You will NOT be able to use it without these fixes!
  • Toontown phase files that include all the dna files. These work fine. Toontown Rewritten's phase files do NOT contain .dna files since they use a completely different format, so you need to use them from elsewhere. Open-Toontown's resources are the closest to Toontown Online's that you can get, while also being completely updated and compatible with Panda3D 1.10.x.
    • These phase files go in the ROOT directory of the editor
  • Basic knowledge on how streets are setup
  • Here you have two options:
    • The advanced option
      • Build yourself a copy of libtoontown, and drop the .pyd files in the root directory.
      • Recent Panda3D build (1.10.7 or later) running on Python 3. This editor is NOT compatible with Python 2.x and will NOT ever be made compatible as Python 2.x is no longer supported.
    • OR the easy option:

Credits

Help

Known Incompatibilities

* Corporate Clash's Acorn Acres street buildings (and likely YOTT as well) * This is an issue we are investigating. Substitute them with another playground's buildings in the storage dna file. This issue occurs in all released versions of the level editor as well. This issue is fixed in recent commits to libtoontown

FAQ

Why can't I load a street from X playground?

  • Make sure the hood's storage file is loaded. You do this by adding it to the --hoods launch option. For example, if you want to work on a street in Donald's Dock and another in Minnie's Melodyland, you set the launch option --hoods DD MM

Do I have to credit the use of this editor?

  • There is NO requirement to list this editor anywhere in your game credits, but you definitely can do so to spread the word!
  • I do ask however, that should you make a modification to the editor, that you fork the editor and leave it open source to promote open source software for the community.

What are the controls?

  • Under the HELP drop-down menu at the top of the window, press the CONTROLS button and a popup will appear.

Some of my props are using textures as if they were in a different playground?

  • This is OK. This is just because you have support for more than 1 playground loaded. This is only visible in the editor, but I recommend you only load the zone you are working on.

I did the setup properly, but the editor just closes on startup with no error message, how do I fix?

  • If you are downloading my redistributed copy of Panda from above, this may be an issue of having multiple installations of panda, and an incorrect one being targeted. Try one or both of the following:
    • Edit the registry
      • Open RegEdit
      • Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.9\InstallPath
      • Change (Default)'s value to C:\Panda3D-1.11.0-py39-x64\python
      • Change ExecutablePath's value to C:\Panda3D-1.11.0-py39-x64\python\python.exe
      • Save, and if that does not work try restarting your PC, or doing option #2
    • Remove all other versions of Panda3D.

openleveleditor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openleveleditor's Issues

cant get to run

when i try to run it it shows this
from direct.gui.DirectFrame import DirectFrame, OnscreenImage, OnscreenText
ImportError: cannot import name 'OnscreenText' from 'direct.gui.DirectFrame' (C:\Panda3D-1.10.12-x64\direct\gui\DirectFrame.py)

Todo before release

  • fix lex/parser

  • fix panda collision traverser

  • implement optional auto compile to pdna

  • maybe add yott styles?

Attempting to load any DNA produces "NoneType" error

Describe the bug

I have a DNA file that I originally made in the editor, and I tried to load it in a few weeks later. When I did that, I got the following error:

Error: 1
AttributeError Exception in Tk callback
  Function: <function DNASerializer.loadSpecifiedDNAFile at 0x0000017554541790> (type: <class 'function'>)
  Args: ()
Traceback (innermost last):
  File "C:\Panda3D-1.11.0-Py39-x64\Pmw\Pmw_2_0_0\lib\PmwBase.py", line 1760, in __call__
    return self.func(*args)
  File "D:\OpenLevelEditor-master\toontown\leveleditor\DNASerializer.py", line 38, in loadSpecifiedDNAFile
    DNASerializer.loadDNAFromFile(dnaFilename)
  File "D:\OpenLevelEditor-master\toontown\leveleditor\DNASerializer.py", line 79, in loadDNAFromFile
    if node.getNumParents() == 1:
AttributeError: 'NoneType' object has no attribute 'getNumParents'

I can also prove that I have been making the DNA file with the editor, as I have screenshots of it in the editor:
Screenshot 1
Screenshot 2 (Latest)
I haven't touched this file since I last had it in the editor, so it shouldn't be an issue of corruption.
Note: I just tested this with the tutorial_street.dna and toontown_central_2100.dna and have gotten the exact same error. This seems to be an issue with the DNA loader?

Edit: After creating this bug, I took a look at the command line and it seems that the DNA loader is having some syntax troubles:

Error in /d/OpenLevelEditor-master/leveleditor/hourglassprototype.dna at line 452, column 11:
  flat_door [
          ^
syntax error

This gets produced right before the "NoneType" error.

Reproduction Steps

  1. Use the latest version of OpenLevelEditor (1.1.16)
  2. Attempt to load a DNA file such as toontown_central_2100.dna or my attached DNA file.

Expected behavior

The editor should load the DNA file with no error, and I should be able to get right back where I left off.

Attachments

hourglassprototype.zip (.zip because GitHub doesn't support .dna)
You can also use the toontown_central_2100.dna from open-toontown/resources.

System Info

  • OS: Windows 10 Home Version 21H2
  • Command Line:
"C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m pip install -r requirements.txt
:top
"C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m ttle --hoods TT
pause
goto top
  • Panda Version: 1.11.0 from the README

Checklist

  • Did you read the entirety of the readme?
  • Did you check for duplicate issues?

Crash when cancelling out window variation change

Traceback (most recent call last):
  File "C:\Panda3D-1.11.0-Py37-x64\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Panda3D-1.11.0-Py37-x64\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "G:\Work Folder\Toontown\dev\TTOpenLevelEditor\ttle.py", line 78, in <module>
    ToontownLevelEditor().run()
  File "C:\Panda3D-1.11.0-Py37-x64\direct\showbase\ShowBase.py", line 3173, in run
    self.taskMgr.run()
  File "C:\Panda3D-1.11.0-Py37-x64\direct\task\Task.py", line 535, in run
    self.step()
  File "C:\Panda3D-1.11.0-Py37-x64\direct\task\Task.py", line 489, in step
    self.mgr.poll()
  File "G:\Work Folder\Toontown\dev\TTOpenLevelEditor\toontown\leveleditor\PieMenu.py", line 92, in pieMenuTask
    self.performAction(self.initialState)
  File "G:\Work Folder\Toontown\dev\TTOpenLevelEditor\toontown\leveleditor\PieMenu.py", line 42, in performAction
    self.action(value)
  File "G:\Work Folder\Toontown\dev\TTOpenLevelEditor\toontown\leveleditor\LevelStyleManager.py", line 981, in setCurrent
    messenger.send('select_' + self.name, [self._current])
  File "C:\Panda3D-1.11.0-Py37-x64\direct\showbase\Messenger.py", line 336, in send
    self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
  File "C:\Panda3D-1.11.0-Py37-x64\direct\showbase\Messenger.py", line 421, in __dispatch
    result = method (*(extraArgs + sentArgs))
  File "G:\Work Folder\Toontown\dev\TTOpenLevelEditor\toontown\leveleditor\LevelEditor.py", line 2255, in setWindowCount    self.DNATarget = self.createWindows()
  File "G:\Work Folder\Toontown\dev\TTOpenLevelEditor\toontown\leveleditor\LevelEditor.py", line 1819, in createWindows
    newDNAWindows.setCode(self.getCurrent('window_texture'))
TypeError: bad argument type for built-in operation

Steps to reproduce:

  1. Open up any dna that contains windows on a wall.
  2. Hold down shift and right click on a window. You'll be given a star-like option to choose between different window layouts.
  3. While you're able to alter the layouts of the windows with the numbers, if you were to move your mouse back to the middle to cancel out the operation, the program will immediately crash.

mspaint_2020-09-28_13-23-24

Crashing when clicking a suit path

So the bug is, I open a street go into the Paths, press Street, then I go press Shift+S on the streets to create the paths and when i click it, it crashes.

Reproduction Steps

Go into Paths, press street, Then shift+s on the street and press it and it crashes.

Expected behavior

I expected it to just be selected and after it was selected I would of linked them together

Attachments

System Info

  • OS: Windows 10 Version 1909
  • Command Line:
    "C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m pip install -r requirements.txt
    :top
    "C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m ttle --hoods GS
    pause
    goto top
  • Toontown School House
  • Panda Version: I use the Panda3D installation which was included in the readme,

Checklist

  • Did you read the entirety of the readme?
  • - Yes
  • Did you check for duplicate issues?
  • - No

goofydna

Suitpoint isssues

Describe the bug

I Place down a suitpoint and when I click on the point I place down I get this

Reproduction Steps

I click on a visgroup and i still get the same error

Expected behavior

I expected it to make a suitpath

Attachments

`
NewStreet

`

System Info

  • OS: Windows 10
  • Command Line: TTLocalizer: Running in language: english
    from toontown.toonbase.TTLocalizerEnglish import *
  • Source of resources
    Im using Toontown School House
  • Panda Version: Panda3D-1.11.0-py39-x64

Checklist

  • Did you read the entirety of the [readme](https://github.com/OpenToontownTools/OpenLevelEditor/blob/master/README.md)?
  • Did you check for duplicate issues?

`
C:\Users\Gabep\Downloads\OpenLevelEditor>"C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m pip install -r requirements.txt
Requirement already satisfied: aiohttp in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from -r requirements.txt (line 1)) (3.7.2)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (3.7.4.3)
Requirement already satisfied: chardet<4.0,>=2.0 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (3.0.4)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (5.0.0)
Requirement already satisfied: async-timeout<4.0,>=3.0 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied: attrs>=17.3.0 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (20.2.0)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (1.6.2)
Requirement already satisfied: idna>=2.0 in c:\panda3d-1.11.0-py39-x64\python\lib\site-packages (from yarl<2.0,>=1.0->aiohttp->-r requirements.txt (line 1)) (2.10)
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'C:\Panda3D-1.11.0-Py39-x64\python\python.exe -m pip install --upgrade pip' command.

C:\Users\Gabep\Downloads\OpenLevelEditor>"C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m ttle --hoods DL
TTLocalizer: Running in language: english
from toontown.toonbase.TTLocalizerEnglish import *
Registered shader render:black_and_white
Registered shader dna:anim_prop
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
OTPLocalizer: Running in language: english
from otp.otpbase.OTPLocalizerEnglish import *
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_4/dna/storage.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_5/dna/storage_town.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_8/dna/storage_DL.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_8/dna/storage_DL_sz.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_8/dna/storage_DL_town.dna
Loading baseline styles from: donalds_dreamland/baseline_styles.txt
Loading wall styles from: donalds_dreamland/wall_styles.txt
Loading building styles from: donalds_dreamland/building_styles.txt
Loading Color Palettes from: donalds_dreamland/colors.txt
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/leveleditor/New Street.dna
Finished Load: C:/Users/Gabep/Downloads/OpenLevelEditor/leveleditor/New Street.dna
Suit point: LPoint3f(667.7, 57.6788, 0)
placeSuitPoint: store_suit_point [ 0, STREET_POINT, 667.7 57.6788 0 ]

Found suit point! store_suit_point [ 0, STREET_POINT, 667.7 57.6788 0 ]

Found suit point! store_suit_point [ 0, STREET_POINT, 667.7 57.6788 0 ]

Traceback (most recent call last):
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\EventManager.py", line 49, in eventLoopTask
self.doEvents()
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\EventManager.py", line 43, in doEvents
processFunc(dequeueFunc())
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\EventManager.py", line 99, in processEvent
messenger.send(eventName, paramList)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method ((extraArgs + sentArgs))
File "C:\Panda3D-1.11.0-Py39-x64\direct\directtools\DirectSession.py", line 568, in inputHandler
messenger.send('DIRECT-mouse1Up')
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method (
(extraArgs + sentArgs))
File "C:\Panda3D-1.11.0-Py39-x64\direct\directtools\DirectManipulation.py", line 342, in manipulationStop
self.manipulateObjectCleanup()
File "C:\Panda3D-1.11.0-Py39-x64\direct\directtools\DirectManipulation.py", line 370, in manipulateObjectCleanup
messenger.send('DIRECT_manipulateObjectCleanup',
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method ((extraArgs + sentArgs))
File "C:\Users\Gabep\Downloads\OpenLevelEditor\toontown\leveleditor\LevelEditor.py", line 1161, in updateSelectedPose
for edge in self.point2edgeDict[pointOrCell]:
KeyError: <0, STREET_POINT, 667.7 57.6788 0>
:task(error): Exception occurred in PythonTask eventManager
Traceback (most recent call last):
File "C:\Panda3D-1.11.0-Py39-x64\python\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Panda3D-1.11.0-Py39-x64\python\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Gabep\Downloads\OpenLevelEditor\ttle.py", line 258, in
ToontownLevelEditor().run()
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\ShowBase.py", line 3316, in run
self.taskMgr.run()
File "C:\Panda3D-1.11.0-Py39-x64\direct\task\Task.py", line 535, in run
self.step()
File "C:\Panda3D-1.11.0-Py39-x64\direct\task\Task.py", line 489, in step
self.mgr.poll()
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\EventManager.py", line 49, in eventLoopTask
self.doEvents()
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\EventManager.py", line 43, in doEvents
processFunc(dequeueFunc())
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\EventManager.py", line 99, in processEvent
messenger.send(eventName, paramList)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method (
(extraArgs + sentArgs))
File "C:\Panda3D-1.11.0-Py39-x64\direct\directtools\DirectSession.py", line 568, in inputHandler
messenger.send('DIRECT-mouse1Up')
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method ((extraArgs + sentArgs))
File "C:\Panda3D-1.11.0-Py39-x64\direct\directtools\DirectManipulation.py", line 342, in manipulationStop
self.manipulateObjectCleanup()
File "C:\Panda3D-1.11.0-Py39-x64\direct\directtools\DirectManipulation.py", line 370, in manipulateObjectCleanup
messenger.send('DIRECT_manipulateObjectCleanup',
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method (
(extraArgs + sentArgs))
File "C:\Users\Gabep\Downloads\OpenLevelEditor\toontown\leveleditor\LevelEditor.py", line 1161, in updateSelectedPose
for edge in self.point2edgeDict[pointOrCell]:
KeyError: <0, STREET_POINT, 667.7 57.6788 0>

C:\Users\Gabep\Downloads\OpenLevelEditor>pause
Press any key to continue . . .

C:\Users\Gabep\Downloads\OpenLevelEditor>goto top

C:\Users\Gabep\Downloads\OpenLevelEditor>"C:/Panda3D-1.11.0-Py39-x64/python/python.exe" -m ttle --hoods DL
TTLocalizer: Running in language: english
from toontown.toonbase.TTLocalizerEnglish import *
Registered shader render:black_and_white
Registered shader dna:anim_prop
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
OTPLocalizer: Running in language: english
from otp.otpbase.OTPLocalizerEnglish import *
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_4/dna/storage.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_5/dna/storage_town.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_8/dna/storage_DL.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_8/dna/storage_DL_sz.dna
🧬 Reading /c/Users/Gabep/Downloads/OpenLevelEditor/phase_8/dna/storage_DL_town.dna
Loading baseline styles from: donalds_dreamland/baseline_styles.txt
Loading wall styles from: donalds_dreamland/wall_styles.txt
Loading building styles from: donalds_dreamland/building_styles.txt
Loading Color Palettes from: donalds_dreamland/colors.txt
`

Traceback

Traceback (most recent call last):
File "C:\Panda3D-1.11.0-py39-x64\python\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Panda3D-1.11.0-py39-x64\python\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\ttle.py", line 258, in
ToontownLevelEditor().run()
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\ttle.py", line 146, in init
self.le = LevelEditor.LevelEditor()
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelEditor.py", line 103, in init
self.styleManager = LevelStyleManager(NEIGHBORHOODS, NEIGHBORHOOD_CODES)
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 21, in init
self.createWallStyleAttributes()
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 169, in createWallStyleAttributes
self.createWallStyleMenu(neighborhood, attribute.getDict()))
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 252, in createWallStyleMenu
bounds = node.getBounds()
AssertionError: !is_empty() at line 538 of panda/src/pgraph/nodePath.cxx

E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master>pause

Crash changing windows

Traceback (most recent call last):
File "C:\Panda3D-1.11.0-Py39-x64\python\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Panda3D-1.11.0-Py39-x64\python\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\hunte\Downloads\OpenLevelEditor-master (1)\OpenLevelEditor-master\ttle.py", line 261, in
ToontownLevelEditor().run()
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\ShowBase.py", line 3316, in run
self.taskMgr.run()
File "C:\Panda3D-1.11.0-Py39-x64\direct\task\Task.py", line 535, in run
self.step()
File "C:\Panda3D-1.11.0-Py39-x64\direct\task\Task.py", line 489, in step
self.mgr.poll()
File "C:\Users\hunte\Downloads\OpenLevelEditor-master (1)\OpenLevelEditor-master\toontown\leveleditor\PieMenu.py", line 91, in pieMenuTask
self.performAction(self.initialState)
File "C:\Users\hunte\Downloads\OpenLevelEditor-master (1)\OpenLevelEditor-master\toontown\leveleditor\PieMenu.py", line 41, in performAction
self.action(value)
File "C:\Users\hunte\Downloads\OpenLevelEditor-master (1)\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 969, in setCurrent
messenger.send('select
' + self.name, [self._current])
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 336, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.11.0-Py39-x64\direct\showbase\Messenger.py", line 421, in __dispatch
result = method (*(extraArgs + sentArgs))
File "C:\Users\hunte\Downloads\OpenLevelEditor-master (1)\OpenLevelEditor-master\toontown\leveleditor\LevelEditor.py", line 2068, in setWindowCount
self.DNATarget = self.createWindows()
File "C:\Users\hunte\Downloads\OpenLevelEditor-master (1)\OpenLevelEditor-master\toontown\leveleditor\LevelEditor.py", line 1707, in createWindows
newDNAWindows.setWindowCount(self.getCurrent('window_count'))
TypeError: arguments do not match any function overload

Loading OZ hood crashes

Traceback (most recent call last):
File "C:\Panda3D-1.11.0-Py39-x64\python\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Panda3D-1.11.0-Py39-x64\python\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "E:\Train Simulator\OpenLevelEditor-1.1.16\OpenLevelEditor-1.1.16\ttle.py", line 263, in
ToontownLevelEditor().run()
File "E:\Train Simulator\OpenLevelEditor-1.1.16\OpenLevelEditor-1.1.16\ttle.py", line 150, in init
self.le = LevelEditor.LevelEditor()
File "E:\Train Simulator\OpenLevelEditor-1.1.16\OpenLevelEditor-1.1.16\toontown\leveleditor\LevelEditor.py", line 109, in init
self.styleManager = LevelStyleManager(NEIGHBORHOODS, NEIGHBORHOOD_CODES)
File "E:\Train Simulator\OpenLevelEditor-1.1.16\OpenLevelEditor-1.1.16\toontown\leveleditor\LevelStyleManager.py", line 21, in init
self.createWallStyleAttributes()
File "E:\Train Simulator\OpenLevelEditor-1.1.16\OpenLevelEditor-1.1.16\toontown\leveleditor\LevelStyleManager.py", line 169, in createWallStyleAttributes
self.createWallStyleMenu(neighborhood, attribute.getDict()))
File "E:\Train Simulator\OpenLevelEditor-1.1.16\OpenLevelEditor-1.1.16\toontown\leveleditor\LevelStyleManager.py", line 252, in createWallStyleMenu
bounds = node.getBounds()
AssertionError: !is_empty() at line 538 of panda/src/pgraph/nodePath.cxx

(please ignore the train simulator directory)

When I click on a suitpoint it crashes

Describe the bug

Reproduction Steps

Expected behavior

Attachments

System Info

  • OS:
  • Command Line:
  • Source of resources
  • Panda Version:

Checklist

  • Did you read the entirety of the readme?

  • Did you check for duplicate issues?

  • [
    ![
    image
    ]`

Can't Import Enum

Describe the bug

H:\work\cyndanera\Projects\toontown\server\OpenLevelEditor>"C:/Panda3D-1.11.0-x64/python/python.exe" -m pip install -r requirements.txt
Requirement already satisfied: aiohttp in c:\panda3d-1.11.0-x64\python\lib\site-packages (from -r requirements.txt (line 1)) (3.8.5)
Requirement already satisfied: attrs>=17.3.0 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (23.1.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (3.2.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from aiohttp->-r requirements.txt (line 1)) (1.3.1)
Requirement already satisfied: idna>=2.0 in c:\panda3d-1.11.0-x64\python\lib\site-packages (from yarl<2.0,>=1.0->aiohttp->-r requirements.txt (line 1)) (3.4)

H:\work\cyndanera\Projects\toontown\server\OpenLevelEditor>"C:/Panda3D-1.11.0-x64/python/python.exe" -m ttle --hoods TT
TTLocalizer: Running in language: english
from toontown.toonbase.TTLocalizerEnglish import *
Traceback (most recent call last):
  File "C:\Panda3D-1.11.0-x64\python\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Panda3D-1.11.0-x64\python\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "H:\work\cyndanera\Projects\toontown\server\OpenLevelEditor\ttle.py", line 18, in <module>
    from toontown.toonbase import ToontownGlobals
  File "H:\work\cyndanera\Projects\toontown\server\OpenLevelEditor\toontown\toonbase\ToontownGlobals.py", line 8, in <module>
    from direct.showbase.PythonUtil import Enum, invertDict
ImportError: cannot import name 'Enum' from 'direct.showbase.PythonUtil' (C:\Panda3D-1.11.0-x64\direct\showbase\PythonUtil.py)

Reproduction Steps

start run.bat

Expected behavior

It just won't run and shows this log

Attachments

None

System Info

  • OS: Windows 10
  • Command Line:
    "C:/Panda3D-1.11.0-x64/python/python.exe" -m pip install -r requirements.txt
    :top
    "C:/Panda3D-1.11.0-x64/python/python.exe" -m ttle --hoods TT
    pause
    goto top
  • Source of resources
    OpenToontown
  • Panda Version: OpenToontown Panda3D Version

Checklist

  • Did you read the entirety of the readme?
  • Did you check for duplicate issues?
    Yes

Trace back when loading the bat

Describe the bug
File "C:\Panda3D-1.11.0-py39-x64\python\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Panda3D-1.11.0-py39-x64\python\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\ttle.py", line 258, in
ToontownLevelEditor().run()
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\ttle.py", line 146, in init
self.le = LevelEditor.LevelEditor()
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelEditor.py", line 103, in init
self.styleManager = LevelStyleManager(NEIGHBORHOODS, NEIGHBORHOOD_CODES)
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 21, in init
self.createWallStyleAttributes()
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 169, in createWallStyleAttributes
self.createWallStyleMenu(neighborhood, attribute.getDict()))
File "E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master\toontown\leveleditor\LevelStyleManager.py", line 252, in createWallStyleMenu
bounds = node.getBounds()
AssertionError: !is_empty() at line 538 of panda/src/pgraph/nodePath.cxx

E:\Downloads\OpenLevelEditor-master\OpenLevelEditor-master>pause
is the traceback

Reproduction Steps
No clue just happens when I launch the bat to run open level editor.

Expected behavior
to load the editor

Attachments

No
System Info

  • OS: Windows 10 latest version
  • Command Line:
    the trace back when it starts so I guess the traceback?
    Specify the source of the resource files you are using (e.g. OpenToontown, Toontown Infinite, Corporate Clash) -->
    Resources from the main download page on the requirements

Specify a precise version of Panda3D. If possible link to the latest commit in your build of Panda3D. Simply saying 1.11.0 does not help, since 1.11.0 is still in development. If you are using the Panda3D installation included in the readme, please specify that. -->

  • Panda Version: 1 from the requirements

Checklist

  • [Yes ] Did you read the entirety of the readme?
  • [Yes ] Did you check for duplicate issues?

getNumParents Object has no Attribute

Describe the bug

When I tried to add phase_3.5/dna, it gave me an error called NoneType Object has no attribute getNumParents

Reproduction Steps

Open run.bat, go to toolbar, load dna file, and it gives error.

Expected behavior

Load DNA files properly

Attachments

bug.log, storage_interior.zip

System Info

  • OS: Windows 11 21H2/22000.739
  • Command Line:
    "C:/Panda3D-1.11.0-x64/python/python.exe" -m pip install -r requirements.txt
    :top
    "C:/Panda3D-1.11.0-x64/python/python.exe" -m ttle --hoods TT
    pause
    goto top
  • Open-Fantasy (which uses Open-Toontown's Resources
  • Panda Version: Panda3D-1.11.0-py39-64 bit

Checklist

  • Did you read the entirety of the readme? -- Yes
  • Did you check for duplicate issues? -- Yes

[Discussion] LibPandaDNA Support

Description

Reupload of #29 since I derped the description.

I am requesting the ability for the level editor to completely bypass non open source components and the ability to use LibPandaDNA to launch the editor similar to the scope of Chris's Project Toon Express.

My biggest pet pieve is this is the Open Level Editor and LibDisney is not open source, but is Visible Source. I believe all open source components should be used if possible. With the codebase of LibDisney being leaked / shared to the public maybe it could be used to understand the code better to help finish the issue on LibPandaDNA's side.

Pie menus show inconsistent behaviour

Unsure what the issue is specifically at this time, the cursor doesn't match the item hovered in most cases and even dragging your mouse too far can affect non-selected nodes.

EDIT: Repro steps unknown at this time, doors seem to get applied to the node rather than the front of the node on certain movements. icky.

Cleanup

Realizing that these are pretty minor things, but things that should still be kept of, making a checklist issue. Nor are they necessarily urgent.

Checklist

  • Make stylefiles more sane, JSON maybe?
  • Replace all uses of 0/1 with bools for better readability/pythonism
  • Ensure all deprecated functions are replaced.
  • Move LevelEditorPanel to a new file #25
  • Move VisGroupPanel to a new file (or a file with LevelEditorPanel) #25

Please, if you feel anything should be added! Discuss! I also think that things need to be a little more compartmentalized. A 6k line file is insane and a pain.

when I load a dna file i get this

Describe the bug

Reproduction Steps

Expected behavior

Attachments

System Info

  • OS:
  • Command Line:
  • Source of resources
  • Panda Version:

Checklist

  • Did you read the entirety of the readme?
  • Did you check for duplicate issues?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.