Page 1 of 1
My Map Editor
Posted: Wed Aug 18, 2010 9:03 pm
by xiphirx
A little interesting fact about this project, I started it when I was a beginner with C++, and worked on it until now. Im trying not to change any code to create a timline of sorts of my coding methods XD.
It would be great if you guys could try it out and report bugs, thanks.
This post was taken from another forum
-----------------------------------------------------------------------
CSPSPMEP Public Beta 2
Features in this beta:
- Loading Maps
- Rotating the map
- Flipping the map
- Choosing a tile
- Scrolling through tiles
- Changing the map width and height
- Drag Fill
- Bucket Fill
- Grid
- Saving maps (saves tile data ONLY, all other data that was on the map will be ERASED)
- Open multiple maps at once
- New GUI
Controls:
q - toggle map information
w a s d - scroll around the map
x - (HOLD) bring up tile selection
v - toggle grid
n - increase grid
m - decrease grid
g - bucket fill
mouse wheel - scroll through tiles
mmb + drag - dragfill
Feedback
- Please post any bugs you find
- Please rate the usability
Known Bugs
- MEP Crashes upon exit
- Background fill doesn't fill on smaller maps
Download:
http://arse.voidteam.net/Personal/CSPSPMEPPUBLICBETA2.zip
Re: My Map Editor
Posted: Wed Aug 18, 2010 11:04 pm
by pritam
Tried it out and it works perfectly fine, didn't find any new bugs. I'm impressed with the fill tool, I've checked out algorithms for it but never gotten far enough to implement it in an application.
Re: My Map Editor
Posted: Wed Aug 18, 2010 11:09 pm
by xiphirx
pritam wrote:Tried it out and it works perfectly fine, didn't find any new bugs. I'm impressed with the fill tool, I've checked out algorithms for it but never gotten far enough to implement it in an application.
The algo Im using is recursive, not quite efficient, but it gets the job done.
Code: Select all
Flood-fill (node, target-color, replacement-color):
1. If the color of node is not equal to target-color, return.
2. Set the color of node to replacement-color.
3. Perform Flood-fill (one step to the west of node, target-color, replacement-color).
Perform Flood-fill (one step to the east of node, target-color, replacement-color).
Perform Flood-fill (one step to the north of node, target-color, replacement-color).
Perform Flood-fill (one step to the south of node, target-color, replacement-color).
4. Return.
http://en.wikipedia.org/wiki/Flood_fill
Re: My Map Editor
Posted: Wed Aug 18, 2010 11:29 pm
by pritam
Yeah, that's my source right there.
Re: My Map Editor
Posted: Wed Aug 18, 2010 11:46 pm
by Ginto8
xiphirx wrote:pritam wrote:Tried it out and it works perfectly fine, didn't find any new bugs. I'm impressed with the fill tool, I've checked out algorithms for it but never gotten far enough to implement it in an application.
The algo Im using is recursive, not quite efficient, but it gets the job done.
Code: Select all
Flood-fill (node, target-color, replacement-color):
1. If the color of node is not equal to target-color, return.
2. Set the color of node to replacement-color.
3. Perform Flood-fill (one step to the west of node, target-color, replacement-color).
Perform Flood-fill (one step to the east of node, target-color, replacement-color).
Perform Flood-fill (one step to the north of node, target-color, replacement-color).
Perform Flood-fill (one step to the south of node, target-color, replacement-color).
4. Return.
http://en.wikipedia.org/wiki/Flood_fill
so basically you went one line at a time?
Re: My Map Editor
Posted: Thu Aug 19, 2010 10:23 am
by GroundUpEngine
Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Re: My Map Editor
Posted: Thu Aug 19, 2010 11:35 am
by Ginto8
GroundUpEngine wrote:What about a Zoom In/Out feature? :P
That would probably be extremely useful for a level editor (seeing how the whole level looks overall, and also being able to edit more precisely), and if you're using OpenGL it'd be a snap. I think you should definitely try implementing it.
Re: My Map Editor
Posted: Thu Aug 19, 2010 12:52 pm
by xiphirx
GroundUpEngine wrote:Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Wait, did you download the map from my website? I think I only included one full map... (the one that opens when you open the editor)
Im not using openGL, I still haven't wrapped my head around it
Re: My Map Editor
Posted: Thu Aug 19, 2010 3:51 pm
by GroundUpEngine
xiphirx wrote:GroundUpEngine wrote:Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Wait, did you download the map from my website? I think I only included one full map... (the one that opens when you open the editor)
Im not using openGL, I still haven't wrapped my head around it
kk, apart from that no problems with editor. Also OpenGL takes
quite a while to learn so dw
Re: My Map Editor
Posted: Thu Aug 19, 2010 7:41 pm
by xiphirx
GroundUpEngine wrote:xiphirx wrote:GroundUpEngine wrote:Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Wait, did you download the map from my website? I think I only included one full map... (the one that opens when you open the editor)
Im not using openGL, I still haven't wrapped my head around it
kk, apart from that no problems with editor. Also OpenGL takes
quite a while to learn so dw
Okay then.
I'm surprised it hasn't crashed yet (except for when you exit D:)
Re: My Map Editor
Posted: Fri Aug 20, 2010 6:47 am
by mv2112
Doesn't work under Wine
Damn visual studio dependencies...
Re: My Map Editor
Posted: Fri Aug 20, 2010 11:44 am
by Ginto8
mv2112 wrote:Doesn't work under Wine
Damn visual studio dependencies...
VirtualBox!
Re: My Map Editor
Posted: Fri Aug 20, 2010 3:12 pm
by mv2112
Ginto8 wrote:mv2112 wrote:Doesn't work under Wine
Damn visual studio dependencies...
VirtualBox!
touche...