View Full Version : Map Tool Updates
Greebo
19th April 2009, 09:39 AM
Thought I'd stick this here to notify the DMs when I've uploaded new terrain and avatars to the map tool.
ES provided us with water terrain. I fleshed out the roads to give more corners.
Several new avatars including some goblins and hobgoblins (and 1 tiefling) are up now. Working on some more this morning.
Attached is a list of counters I have available. Probably a fair bit of dups in there but there are THOUSANDS. Suggest you do a search on keywords if you wanna find something you want me to prioritize uploading.
Greebo
19th April 2009, 09:52 PM
Several new avatars are available thanks to Sagar's request.
DinbinFanfoom
19th May 2009, 11:33 AM
Note: Greebs: If'n you see any glaring bugs in the mapcode that is causing you grief, feel free to tweak and comment it. Do you have access to the code?
Greebo
19th May 2009, 11:42 AM
Note: Greebs: If'n you see any glaring bugs in the mapcode that is causing you grief, feel free to tweak and comment it. Do you have access to the code?
No, my root access drops me only in the location of the tiles and such.
DinbinFanfoom
19th May 2009, 11:44 AM
No, my root access drops me only in the location of the tiles and such.Does perusing my spaghetti ASP interest you? Give me a "Meh" roll...
Greebo
19th May 2009, 11:48 AM
Does perusing my spaghetti ASP interest you? Give me a "Meh" roll...
Didn't you get my PM? I'd love to look at it.
DinbinFanfoom
19th May 2009, 11:55 AM
Didn't you get my PM? I'd love to look at it.
If I did, I must have missed that. Try now, I've changed your home dir.
Greebo
19th May 2009, 12:08 PM
I see it now thanks
Greebo
19th May 2009, 12:17 PM
Wow I forgot how much I hated old ASP.
would you be terribly offended if I took out all the response.writes for the static html? Kinda wastes asp procesing cycles and makes the code harder to read to identify actual script.
DinbinFanfoom
19th May 2009, 12:20 PM
No matter to me. I'm (slowly) learning ASP.NET, working on SR V2 stuff. Slowly.
Greebo
19th May 2009, 12:28 PM
Really?
Which version of ASP.NET?
Cause what I'd REALLY like is to convert it to .NET 2
EricStratton
19th May 2009, 02:26 PM
If you're going to have multiple devs working on it, you might want to think about source control. I'm a big fan of GitHub (www.github.com). Now the downsides are obvious: 1) the source code will be publicly available unless you want to pay for private hosting; 2) You'd have to learn git.
My answers to that are: 1) Yeah, that can be a deal killer; 2) git can be complicated but it's a really great version control program.
Just something to think about instead of having someone ftp their files over totally destroying a change made or messing up something.
EricStratton
23rd May 2009, 02:58 PM
Just in case Dinbin's not aware looks like there are some connection issues w/ the web server and DB today.
Greebo
23rd May 2009, 03:21 PM
Can't connect via the back end either :( db server down
Greebo
23rd May 2009, 03:34 PM
Thanks to Dinbin giving me remote access via the phone, we're back up.
Now to see what the big red button does that says "DONT PRESS EVER"
Greebo
5th June 2009, 02:06 PM
FYI Din, I'm continuing, slowly, to move this into .NET 2 framework.
At this point, base look & feel, connectivity to MySql, and ability to log in as a user have been recreated.
Moving onto the actual GM functionality now.
The Games page - the idea is to allow the adding of a new Game, and that maps, scenes, chars and NPCs will be tied to games, is that right?
DinbinFanfoom
5th June 2009, 02:11 PM
The Games page - the idea is to allow the adding of a new Game, and that maps, scenes, chars and NPCs will be tied to games, is that right?
Yes.
A GM can have many games, each of a different ruleset. A game can have many scenes and characters and NPC's and maps. Scenes tie it all together.
I'll try to take a gander at your code this weekend... Zip has been slowly coaxing me through expanding my knowledge of .NET. I've actually got a "test" master page working that places a header and sidebar block ATM. (for SRV2, of course)
Greebo
5th June 2009, 02:13 PM
I'd have to put my code up there for you to gander at first. I'm doing all this locally.
Greebo
5th June 2009, 02:15 PM
And I'm having to recreate the db from scratch, because on this pc I can't log into your mysql server... No big deal though because I have some thoughts on map construction that would totally negate the existing map schema, and possibly scenes, anyway.
DinbinFanfoom
5th June 2009, 02:20 PM
And I'm having to recreate the db from scratch, because on this pc I can't log into your mysql server... No big deal though because I have some thoughts on map construction that would totally negate the existing map schema, and possibly scenes, anyway.
I can't remember if SQLYog enterprise is on the virtual server or not. If it is, log into that (via remote desktop) and export the whole kit-n-kabootle to an .sql batch script. Copy it locally and run it.
Greebo
5th June 2009, 02:24 PM
Thanks but it wasn't really a problem I was looking to solve. ;) I can't remember the login info anyway
DinbinFanfoom
5th June 2009, 03:53 PM
Here's a question for you (and other .NET programmers):
Where is the best place to put your generic db connect code so it's accessed automatically? This connection would be created on every page refresh anyway... so where should it reside?
In (each) master page itself?
Lycos
5th June 2009, 04:01 PM
Get it out of the page code, and think about putting it in your business (back-end) objects. I have used a single SQL connection object per session in the past with success. Make it available to all classes (there are different ways you can do this). And they can grab it as they need to make a query.
Greebo
5th June 2009, 04:03 PM
I like to create a derivative of System.Web.UI.Page and put all common functionality to all pages in that, then derive my usual pages from that derived page.
I'll upload my work so far, Din, so you can have a look at what I mean.
Greebo
5th June 2009, 04:48 PM
I'm finding that mySQL doesn't integrate too well with databound controls, which is disappointing, because it means all the database codign will have to be hand written.
Grr.
Greebo
5th June 2009, 05:24 PM
Well this was a pita, but in the long run, better to solve it now.
I try to parameterize all my queries - to better avoid issues like sql injection. .NET has a plethora of built in data bound controls that make development really easy, cause you can bypass all the txtbox.text = mydatafield.value and later myparameter=txtbox.text code. You just bind controls to datasource controls and good to go.
But not with mySql because unlike SQL Server which uses @ for parameters, mysql uses ?, and .NET isn't good with that conversion. When you read data, you say "Select myid, myfield from table" and you bind your controls to "myfield" and in SQL Server your query is "update table set myfield=@myfield where myid=@myid" but in mysql its update table set myfield=?myfield where myid=?myid"
.NET doesn't like it if you name your parameters ?myid because you bind to myid, and it doesn't like it if you name your fields ?myid because ? is a parameter identifier...
But I found that if you interrupt the updating event on the databound control you can rename the
parameters before they get parsed, so by adding this event for every datasource:
protected void mysqlGames_Updating(object sender, SqlDataSourceCommandEventArgs e)
{
foreach (MySqlParameter param in e.Command.Parameters)
{
param.ParameterName = "?" + param.ParameterName;
}
}
You can force the parameter names to work w/ MySql's ? but still bind to the regular field names.
Yeah, I know, way geeky - show this to Vork - he may appreciate it.
DinbinFanfoom
5th June 2009, 05:51 PM
Yeah, I know, way geeky - show this to Vork - he may appreciate it.
I just showed it to me. Yes. I thank you, and me thanks you too. :D
Greebo
5th June 2009, 10:17 PM
Erm...you know who I meant. Anyway let me know if you have any questions about it so far :)
Lycos
7th June 2009, 08:40 PM
I'm finding that mySQL doesn't integrate too well with databound controls, which is disappointing, because it means all the database codign will have to be hand written.
wimp! :lowrazz:
Greebo
7th June 2009, 08:45 PM
wimp! :lowrazz:
I already solved the issue :P. I work hardest when the result means I can work less hard later. :P
EricStratton
10th June 2009, 04:13 PM
Feature Request:
Allow the scene to dictate how much of the map is displayed.
For example, the party is entering a decent sized map. If the DM creates the whole map or even makes the map area as big as it will be but not fill in all the tiles, the players will know it's a big map.
The solution as of now is to not make the entire map right away. But then continuously return to the map tool to add more to the map as the party ventures on.
If the DM can create the map all at once, and then tell the scene to only display a certain area the DM can just make the map once and not worry about it again.
----
Of course if this isn't the way one usually plays DnD forget it. I noticed during my first RL DnD game over the weekend that Greebs had the maps all ready and just displayed the entire thing (well, entire thing that I know of) right when we entered that area.
Sagar
10th June 2009, 04:19 PM
I like the idea, ES.
Greebo
10th June 2009, 04:20 PM
I did that for convenience more than anything else - because I'm running that exact same adventure this thursday at RPGA night and in those games, time is of the essence.
In principle I do prefer the "gradual unveiling" approach
EricStratton
10th June 2009, 04:43 PM
Feature Request:
Allow real blanking of map tiles. I like to use the current "blank" tile (which is actually a kind of fog-looking tile) so I don't want to get rid of it. But I'd like the ability to actually clear a tile (set the location's tile ID = 0). Right now it requires directly editing the map entry in the DB.
And, allow shrinking of a map. Right now this also requires directly editing the map entry in the DB.
EricStratton
10th June 2009, 04:43 PM
I did that for convenience more than anything else - because I'm running that exact same adventure this thursday at RPGA night and in those games, time is of the essence.
In principle I do prefer the "gradual unveiling" approach
Ok, gotcha. Cool.
EricStratton
12th June 2009, 08:17 PM
Feature request:
I don't know if we'd discussed this or not but the Map Tool should create our status tables for us (the ones that we currently make using Greebo's great Excel file).
This would help in a couple ways. We'd only have to enter the data once - into the map tool. And the tool can already know which map we're using and automatically put the link to the map in the data we're pasting.
It's actually pretty well equipped for this already. The tool already tracks HPs (so it can do bloodied already), stats, etc. It already knows which creatures are NPCs and which are PCs. We'd just have to add a couple more fields (surges, heals, APs, Dailies, Init Roll) and it could do the rest. It could even change the "GM Notes" field into Public Notes and Private Notes. "Public notes" which would be like our current "Other Effects" column and private notes only the GM sees for stuff like "Reminder, atty dies in Round 2."
We could even get crazy where "effects" and other fields (like Dailies) isn't a text field but is instead an HTML multiple select field to which we can add and delete entries.
Greebo
12th June 2009, 08:31 PM
I like that - and even better, if we could do initiative tracking, surge usage, etc. Nothing that hasn't been done before, but rolled into a map tool would be really nice.
DinbinFanfoom
15th June 2009, 08:34 AM
I like that - and even better, if we could do initiative tracking, surge usage, etc. Nothing that hasn't been done before, but rolled into a map tool would be really nice.
I would throw that table at the bottom of the player-viewed-scene screen. Easy enough to haul together, the data's already all loaded at that point.
Greebo
15th June 2009, 01:10 PM
NTS: attribute on creatures for invis and hidden.
Invis: Name shows up on mouseover of the cell
Hidden: No popup rollover
Zyzzyx
15th June 2009, 01:17 PM
Feature suggestion?
How about a very basic portal page, with a listing of what maps are available/in-use? While it would still be quite nice to have the DM post the direct link, it would also allow someone to just go to the main site, and then a couple clicks later have their group's current map. No more asking, "link to the map please..."
Quervo
15th June 2009, 02:34 PM
The idea of a portal page is cool.
Greebo
15th June 2009, 03:08 PM
Looking at Din's menu structure in the admin tools I think he originally intended players to be able to log in and see their active games.
That's a "nice to have" but its worth remembering.
DinbinFanfoom
15th June 2009, 03:28 PM
Looking at Din's menu structure in the admin tools I think he originally intended players to be able to log in and see their active games.Yes.
DinbinFanfoom
21st December 2009, 12:54 PM
I've updated the live tool so that if you expand a map up or left, the PC's and NPC's on it will shift down or right respectively.
attriel
21st December 2009, 02:03 PM
I've updated the live tool so that if you expand a map up or left, the PC's and NPC's on it will shift down or right respectively.
can you update it so i can floodfill with a tile? I hate doing large maps because I have to click in every tile, when really 90% of them are "dirt floor" or "grass" or something :/
Sagar
13th January 2011, 08:05 AM
Is the tool messed up? I can't log in.
I get a scrolling "You are not logged in" message.
I log in and it blinks and I get a "You are not logged in" message.
Sagar
13th January 2011, 06:50 PM
Never mind. I figured it out.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.