Creating a map for my game does not work

Be sure to read and follow the guidelines for our forums.

Apr 27, 2015 3:09 pm
In the dialog window I entered "Runes of Oblivion as title and gave the dimensions 18x21.
Clicking the create button does nothing.
Apr 27, 2015 3:27 pm
I'll look into that as well!
May 1, 2015 2:44 pm
You shouldn't have any trouble making a map now, though it seems that maps are still a bit buggy. I'm gonna keep working on it, but if you run into any issues, lemme know!
May 1, 2015 2:59 pm
Works now.

Klicking on the settings button (gear) on the game page gives an SQL Error:

( ! ) Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'columns' in 'field list'' in /var/www/gamersplane/games/maps/details.php on line 11
( ! ) PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'columns' in 'field list' in /var/www/gamersplane/games/maps/details.php on line 11
Call Stack
# Time Memory Function Location
1 0.0000 233616 {main}( ) ../dispatch.php:0
2 0.0048 346264 require( '/var/www/gamersplane/games/maps/details.php' ) ../dispatch.php:73
3 0.0048 349064 query ( ) ../details.php:11

Editing the Map works so far but I'd like to have dungeon tiles. Like the ones in the Basic D&D rules for example:

http://enrill.net/images/play-by-posts/maps/volcano/map-legend.jpg
May 1, 2015 3:18 pm
First, the details bug is fixed.

Second, tiles are actually planned, but a bit lower on my priority list; I want to make sure the post experience is top notch first, then I plan on addressing things like the maps. Another part of it is people haven't really been using the maps, so I haven't really put too much thought into it. And finally, I'm not a great designer, and definitely not a good artist, so artwork like that would take a bit :/

I do appreciate the suggestion though!
May 1, 2015 3:26 pm
Jut take an open source icon set... there should be some out there :-)
May 1, 2015 3:33 pm
Haha, I tried clicking on the map and the system spat out Don't peak behind the DM screen!
You might want to try looking somewhere else.

Well played, Keleth!
May 1, 2015 3:39 pm
ROFL wonderful :-) I have set the map to not visible :-)
May 1, 2015 3:52 pm
* Saving changes on the map doesn't work
* Scrolling the map doesn't work

I'd like to use it for fights :-)
May 1, 2015 3:56 pm
I'd like for you to use it for fights! That's what I built it for!

I made a MASSIVE code change to how the games system worked a few months ago, and I suspect some things on maps slipped through the cracks.
May 3, 2015 12:43 am
So the maps system technically works now, but I'm realizing its REALLY not use friendly. I'm gonna go back to look over it again, but some 30-40% of it may need to be recoded.
May 3, 2015 7:05 am
Sorry you seem to have introduced a new error on the games page.
The map section now reads:

( ! ) Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'deleted' in 'where clause'' in /var/www/gamersplane/games/details.php on line 254
( ! ) PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'deleted' in 'where clause' in /var/www/gamersplane/games/details.php on line 254
Call Stack
# Time Memory Function Location
1 0.0001 232360 {main}( ) ../dispatch.php:0
2 0.0064 340864 require( '/var/www/gamersplane/games/details.php' ) ../dispatch.php:73
3 0.0095 366624 query ( ) ../details.php:254
May 3, 2015 3:39 pm
Sorry, I was lazy about releasing. Its good now.
May 3, 2015 3:57 pm
Saving the map still doesn't work....
May 3, 2015 4:06 pm
Hm... its working for me... going back to the code.

When you say saving, do you mean from the map details page? Or do you mean on the map page itself?
May 3, 2015 4:12 pm
* I put some tiles on the map.
* I klick save.
* I change the page.
* I back go to the map details
=> The map is empty.
May 3, 2015 4:23 pm
I see...

Yah, I think I may have to just redo a large part of the maps. It was built back near the start of GP, and I've done my best to keep it up to date, but as its not a tool people were using, it fell by the wayside a time or two. I'm looking through, and JS is a mess.
May 3, 2015 4:33 pm
I've been building Gamers' Plane for 10 years now, though its current, "working" configuration is 4 years old, which is still pretty old for a solo, on the side project.
May 3, 2015 4:37 pm
:-) better than my track record... I rarely finish side projects.
May 4, 2015 10:20 am
Hmm... Keleth, what would you say if I would volunteer to redo the map page...
I'd provide HTML + JS and you'd have to add a backend for save/load operations. I could implement an API on AJAX/REST so you can change the endpoints easily. This could be done as a relatively independent component that is easy for you to include.
You might have to entrust your html/css template for the maps page to me.
But I could provide my real credentials to you in return.

I found a very good resource.

Kiwi.js, a JS jibrary specially for games.

Especially this tutorial.

I know Tiled, it is an easy to use free tile map editor. By supporting that you could completely save yourself the trouble of writing a sophisticated editor yourself. You could limit the functionality to manipulating the icons. Also people could use their own tile sets.

So what do you say?

Edit:
Found a public domain tileset I can use... No legal trouble with that.

More libraries to consider:
* GameQuery with plug'n'play tile map editor
Last edited May 4, 2015 11:33 am
May 4, 2015 12:15 pm
Lemme start by saying Tiled looks really awesome.

So, my first thought is, no way I could ask/let this guy code stuff for me for free, and I can't afford to hire anyone right now, but you are volunteering. Second, I wanna say no just because I have trouble letting go of control over my code. And then finally I think, hey, that would save me at least 10 hours, which is enough to finish my versioning code.

I can't really offer you anything back except once I finish the XP system, to give you bonus XP + a title/badge.

Why don't you shoot me an email at contact@gamersplane.com and we can discuss. API based makes sense, which is what I was going to convert it to anyway. Templating isn't a huge deal as everything gets head and footer included of course, and I can provide you the stylesheets (written in LESS).
May 4, 2015 1:51 pm
*Ding* "You've got Mail!"
May 5, 2015 7:38 am
My prototype map is now scrollable...

http://i.imgur.com/Ni7zdC3.png

ATM sadly only works in Firefox. Chromium doesn't allow loading files from HD via AJAX...
Last edited May 5, 2015 7:39 am
May 5, 2015 10:27 am
I'll try a little experiment...
I opened up the issue tracker and wiki on the map project. Everybody can now read the wiki and add issues.
At this point please only add enhancement and proposal issues.

https://bitbucket.org/chocokiko/gamersplane-map-tool
Last edited May 5, 2015 1:35 pm
May 5, 2015 1:35 pm
I have put up a first prototype to play with...
Please tell me what you think.

http://chocokiko.bitbucket.org/
Last edited May 5, 2015 1:35 pm
May 5, 2015 7:37 pm
Just added two more layers to the map:
* Fog of War to cover up areas the players have not visited yet
* Entity layer, where tokens can be placed. In the Tiled editer you can define the areas where characters can walk here. So placement of tokend on walls can be prevented.

The feature is buggy and incomplete now. I'll keep you posted when I'll update the prototype.
May 5, 2015 8:14 pm
In about two days, you've gotten further than I did in a month. Mind you, I wrote my own code, but its smarter to use an existing library anyway :p
May 6, 2015 4:42 am
Yeah... One of the first things I learned... "Don't reinvent the wheel" :-)
May 6, 2015 12:38 pm
"BUT I CAN MAKE A BETTER WHEEL!"

Plus, most of GP is custom made :p
May 6, 2015 1:20 pm
Keleth: Please give me the database tables you store all relevant information in. I'll need the fields and maybe some comments on what your intentions where.

The data important to me would be:
* the map itself
* user information (I probably won't need much of that but to be sure)
* Characters & Character sheets
May 6, 2015 2:34 pm
Right now, its stored in the MySQL, but I was thinking of converting that over to Mongo, so the fields would just be whatever data we felt was relevant to store.

For user information, I imagine we'd just need the userID and username.

For characters/char sheets, I intended on having a link between character tokens and sheets, but don't have a system in place to handle that yet. Right now its a case of label the tokens whatever you want.

You do not have permission to post in this thread.