Professional-Hobo / pokemon-KF-version

4th attempt's the charm
http://keitharm.github.io/pokemon/
5 stars 1 forks source link

Mapmaker for Pokemon KF? #1

Open PaulCodeDisaster opened 8 years ago

PaulCodeDisaster commented 8 years ago

Hey,

I come frome Germany, sorry for my English. I create a Pokemon Browsergame but my Javascript not so good, Now i use Pokemon KF , but i dont can make maps.

Generate.php doenst works "Fatal error: Arrays are not allowed in class constants in C:\xampp\htdocs\map\Map.class.php on line 8"

Please, please can you make a MapMaker for Pokemon KF versions?

keitharm commented 8 years ago

Hi @PaulCodeDisaster,

You'll need to update your PHP to at least version 5.6.0. If you aren't able to do that, then you can do some simple changes to Map.class.php and it should work.

Just change const GROUP_TILES = array("POKECENTER", "OAKLAB", "PLAYER_HOUSE", "RIVAL_HOUSE"); to static $GROUP_TILES = array("POKECENTER", "OAKLAB", "PLAYER_HOUSE", "RIVAL_HOUSE"); on line 8.

And then change every reference of Map::GROUP_TILES to Map::$GROUP_TILES.

Generate should work now! :)

PaulCodeDisaster commented 8 years ago

Ok i have Updated my xampp, and it works! It came a lot of PHP notices but it works realy thanl you

But i have another question

Can you please make a MapMaker ? Mapping with text is not easy... Some people where wanna mapping for me dont Understand this system to mapping....

we need a map maker where compile a Map in this Text for generator...

Thank you for your help!

PaulCodeDisaster commented 8 years ago

Sorry for DoublePost: We need only the mapmaker where i can make a Mape with Tiles and there Compile the tiles into the right letters for generater...

For events and others i have my own system that works on Database... (MySQL)

keitharm commented 8 years ago

Hey @PaulCodeDisaster,

It took a lot of hours to get the current Node.js version of the PokeMMOn map editor to where it is and it is still far from complete. It wouldn't really make sense to put many more hours of my time into an older version of the project that I haven't touched in nearly 1 1/2 years and don't intend to complete using PHP.

Sorry, but I think it'd be best if you were to incorporate the JSON files that the Node.js map maker generates with your system.

PaulCodeDisaster commented 8 years ago

ok thank you!