Coder Social home page Coder Social logo

dsbilling / p3d-legacy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p3d-legacy/p3d-legacy

0.0 1.0 0.0 747.75 MB

Legacy repository for the Pokémon3D Visual Basic version

License: GNU General Public License v3.0

HLSL 0.02% FLUX 0.02% C# 0.18% Visual Basic .NET 99.78%

p3d-legacy's Introduction

The game is not in active development by nilllzz anymore, but few people from the community are maintaining the game and porting it to MonoGame platform. You are free to fork and redistribute the code under the GNU GPLv3 license.

Build instructions (game)

The game is written in Visual Basic and was compiled targeting the .Net Framework 4.5 for my public builds.

It is built using the MonoGame framework as graphics middleware.

In order to build the game's solution, you need the following:

To run the game after a successful build, you also need an applicable graphics card that supports DirectX (version 9 minimum).

The first build of the game will take a little longer due to the MonoGame Content Pipeline building all assets for the first time.

Running the game

In order to run the game, you will need the following:

Classified information

The game was configured to connect to several servers and internet APIs using private keys. To keep the private keys private, they have been redacted from the source code, along with a few URLs.

If you want to add your own private keys/URL connections back into the game to enable certain online features, search for these comments in the source code:

' CLASSIFIED

Every line that has the "CLASSIFIED" comment at the end of it had some string info removed from it.

File Validation

To ensure that the game has the original files in place to ensure fair online gaming, the game does something called "File Validation".

It basically stores a hash for each map, script and data file in a file called "meta" in the game's root directory. Hardcoded into the game's code is the hash for the meta file, to ensure that it did not get altered.

To code responsible for this is located in Security/FileValidation.vb.

To generate a valid meta file for the current state of the files in the game, go to the aforementioned code file and set this:

    Const RUNVALIDATION As Boolean = True ' Instead of False

Also, be sure to turn off the IS_DEBUG_ACTIVE in the *Core/GameController.vb" file:

Then build and debug-run the game. The console output of during the game's launch will output an expected size and metahash value.

It will also produce an updated "meta" file.

Stop the debugging of the game and copy these two values into the correct places at the top of the FileValidation code:

    Const EXPECTEDSIZE As Integer = <your expected size output here>
    Const METAHASH As String = <your meta hash here>

Once you have done this, disable the RUNVALIDATION variable again and build the game again to have it boot up like normal.

Development

The game includes a switch to enable debug mode that makes map development or general dicking around easier.

Locate the file Core/GameController.vb and set the IS_DEBUG_ACTIVE const to True, then rebuild the game.

This is basically the SandboxMode that can be enabled in the game's save files plus these features:

  • display last build time in the F3 menu
  • trade with yourself in the Game Jolt GTS
  • bypass current version checks in the Game Jolt login screen
  • update the game's current version on Game Jolt (set UPDATEONLINEVERSION to True in Core/GameController.vb and rebuild the game).
  • Move the 3rd person camera around freely with arrow keys (hold ctrl and up/down to move the camera on the Y axis)
  • Open the Pokégear even though the player has not received it yet and use its modules without receiving them.
  • Legacy diagonal movement support
  • Reduce Kolben Splash Screen delay as much as possible
  • All HM moves are present in every Pokémon's menu.
  • Ignore FileValidation warning

p3d-legacy's People

Contributors

captainsegis avatar theomegaghost avatar darkfire006 avatar fantax1911 avatar nilllzz avatar jianmingyong avatar aragas avatar dsbilling avatar tornado9797 avatar sviper avatar jappawakkap3d avatar zottelchen avatar jappawakka avatar

Watchers

 avatar

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.