Coder Social home page Coder Social logo

libtoontown's Introduction

libdisney

libdisney is a project meant to modernize the libotp and libtoontown libraries created by Disney for their now closed MMORPG, Toontown Online.

Thanks to the project, it is now possible to use libotp and libtoontown in the newest Panda3D engine version, Panda3D 1.11.0.

It has been tested on both Python 2.7 and Python 3.8.

To switch the Panda3D SDK the project is built for, set the PANDA_DIR CMake variable.

To build for 32-bit Panda3D, use the -A Win32 flag, whereas to build for 64-bit Panda3D, use -A x64.

Major thanks to satire6 for releasing the Anesidora cache that made this project possible! Keep it up, and thank you so much!

Usage

Example build steps for 64-bit Panda3D installed at C:/Panda3D-1.11.0-x64:

mkdir build
cd build
cmake -G"Visual Studio 16 2019" -A x64 -DPANDA_DIR=C:/Panda3D-1.11.0-x64 ..
msbuild /p:Configuration=Release ALL_BUILD.vcxproj

Thanks for loblao's libpandadna project for the interrogate CMake project skeleton!

libtoontown's People

Contributors

darktohka avatar drewc5131 avatar littletooncat avatar

Stargazers

 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

libtoontown's Issues

When using libtoontown instead of libpandadna certain doors won't work.

When trying to enter doors such as the ones inside of playground and street buildings, your estate door, and cog HQ doors they simply won't let you enter.
They don't crash you, it's just like won't register the input it seems that you are entering a door.
Other doors work fine though.

Error compiling libtoontown on Ubuntu 16.04

Scanning dependencies of target otp
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/cImpulse.cxx.o
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/cMover.cxx.o
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/cMoverGroup.cxx.o
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/config_movement.cxx.o
In file included from /home/azureuser/libtoontown/src/otp/movement/config_movement.h:10:0,
                 from /home/azureuser/libtoontown/src/otp/movement/config_movement.cxx:6:
/usr/include/panda3d/notifyCategoryProxy.h:148:18: error: duplicate explicit instantiation of ‘class NotifyCategoryProxy<NotifyCategoryGetCategory_movement>’ [-fpermissive]
   template class NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename>; \
                  ^
/usr/include/panda3d/notifyCategoryProxy.h:160:3: note: in expansion of macro ‘NotifyCategoryDefName’
   NotifyCategoryDefName(basename, #basename, parent_category);
   ^
/home/azureuser/libtoontown/src/otp/movement/config_movement.cxx:14:1: note: in expansion of macro ‘NotifyCategoryDef’
 NotifyCategoryDef(movement, "");
 ^
cc1plus: warning: unrecognized command line option ‘-Wno-misleading-indentation’
cc1plus: warning: unrecognized command line option ‘-Wno-ignored-attributes’
cmake/otp/CMakeFiles/otp.dir/build.make:134: recipe for target 'cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/config_movement.cxx.o' failed
make[2]: *** [cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/config_movement.cxx.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'cmake/otp/CMakeFiles/otp.dir/all' failed
make[1]: *** [cmake/otp/CMakeFiles/otp.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

otp igate files missing?

I'm getting the following errors:

(venv) :~/environment/toontown/libtoontown/build $ make
Consolidate compiler generated dependencies of target otp
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/nametag/nametag.cxx.o
[  3%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/nametag/nametagGroup.cxx.o
[  4%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/nametag/popupMouseWatcherRegion.cxx.o
[  6%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/nametag/whisperPopup.cxx.o
[  7%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/navigation/pathTable.cxx.o
make[2]: *** No rule to make target '../src/otp_igate.cxx', needed by 'cmake/otp/CMakeFiles/otp.dir/__/__/src/otp_igate.cxx.o'.  Stop.
CMakeFiles/Makefile2:115: recipe for target 'cmake/otp/CMakeFiles/otp.dir/all' failed
make[1]: *** [cmake/otp/CMakeFiles/otp.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

I don't see any files named otp_igate.cxx in this repo at all?

dna: Reading a file does not clean out when an error occurs.

If there's a syntax error inside a group in a DNA file, it somehow continues to read the errored out file instead of reading a different file on the next loadDNAFile(AI) call.

Here's a test script follow by a couple of test DNA files to replicate this error:

test.py:

from panda3d.core import *
from libotp import *
from libtoontown import *

loadPrcFileData('', 'notify-level-dna debug')

store = DNAStorage()
data = loadDNAFile(store, 'test_fail.dna')
data = loadDNAFile(store, 'test.dna')

test_fail.dna:

group "testGroup" [
  // This purposely returns a syntax error
  error [ "out" ]
]

test.dna:

// This one reads fine
group "testGroup" [
]

And this is the result when running test.py. Notice how it's still trying to read test_fail.dna instead of intended test.dna:

:dna: Reading /home/littlecat/libtoontown/test_fail.dna
:dna(debug): start of dnData.read
error
Error in /home/littlecat/libtoontown/test_fail.dna at line 3, column 4:
  error [ "out" ]
   ^
syntax error

:dna(debug): end of DNAData.read
:dna(error): Error reading /home/littlecat/libtoontown/test_fail.dna
:dna: Reading /home/littlecat/libtoontown/test.dna
:dna(debug): start of dnData.read

Error in /home/littlecat/libtoontown/test.dna at line 0, column 6:
  error [ "out" ]
     ^
syntax error

:dna(debug): end of DNAData.read
:dna(error): Error reading /home/littlecat/libtoontown/test.dna

Toontown crashes on startup

Client Gets to initial loading screen then crashes with no traceback
This isn't just happening for me too. Got a report from another toontown developer about the same issue.

Errors when building solution in visual studio 2019

I am using the panda3d from open-toontown
All the stuff from panda3d dir is found.

Severity Code Description Project File Line Suppression State
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'return': cannot convert from 'PandaNode *' to 'NodePath' libotp D:\Github\libtoontown\src\otp\nametag\nametagGroup.cxx 467
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14
Error C2440 'type cast': cannot convert from 'long' to 'PointerTo' libtoontown D:\Github\libtoontown\src\toontown\dna\dnaGroup.I 14

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.