ChAoS PsYcHe Posted June 8, 2020 (edited) UPDATE: Tool Released for Windows WADdle Plot Command Line Version: https://github.com/InZane84/WADdle-Plot-CLI/blob/master/waddle_plot.7z Source Code(for curious programmers) https://github.com/InZane84/WADdle-Plot-CLI/blob/master/waddle_plot.py ================================ This tool came about as I was learning Python. I've always been curious about the structure of wadfiles. The code is a mess and would take some tlc before posting on GitHub. It currently works for all IWADS and most PWADS. When finished it would have a TK GUI with lots of configuration options. Slow plotting, fast plotting, instant display, change line colors, e.t.c. This is planned to be part of WADdle, a set of wadfile tools. Eventually to include a basic map viewer/editor. Implemented in Python, cross-platform. I would love to collaborate with any who are experienced in Python and TKinter. Honestly, I need some assistance with the project. A command-line version will be released soon along with the source code. Here it is in action: https://github.com/InZane84/waddle_plot/blob/master/waddle_plot.gif Edited June 10, 2020 by ChAoS PsYcHe Tool Released 11 Quote Share this post Link to post
elend Posted June 9, 2020 Ohh, this is neat. I want to try this... 0 Quote Share this post Link to post
ChAoS PsYcHe Posted June 9, 2020 1 hour ago, Artman2004 said: What map is that? Map 3 from WOS.wad. Whispers of Satan... 0 Quote Share this post Link to post
Kool Belzero Posted June 9, 2020 Cool stuff, will it be a normal executable or do you need Python installed to run it? 0 Quote Share this post Link to post
ChAoS PsYcHe Posted June 9, 2020 57 minutes ago, Kool Belzero said: Cool stuff, will it be a normal executable or do you need Python installed to run it? I'm going to release it as a normal executable so it's accessible as possible. 1 Quote Share this post Link to post
ChAoS PsYcHe Posted June 10, 2020 It's in the wild. Click the download button on the top right on that GitHub page. It's a 7zip archive, standalone executable for Windows... Some maps will draw slightly off centered. Some, not many. If any programmers know how to scale/center a plot within a window correctly, please help a coder out... 0 Quote Share this post Link to post
andrewj Posted June 10, 2020 38 minutes ago, ChAoS PsYcHe said: If any programmers know how to scale/center a plot within a window correctly, please help a coder out... You want to use an equation like this (for X coords) when drawing: win_x = (map_x - minimum_x) * scale So you need to compute the minimum X coordinate and the maximum X coordinate over the whole map. Then you can compute the scale like this: scale = win_width / (maximum_x - minimum_x) Same idea applies to Y coordinate, but you may need to invert things because map coordinates increase in the "north" (up) direction but screen Y coordinates typically increase in the down direction. 0 Quote Share this post Link to post
taufan99 Posted June 10, 2020 This is very cool. Looks like something you'd see from a DOOM 64 mod. 0 Quote Share this post Link to post
ChAoS PsYcHe Posted June 10, 2020 6 hours ago, andrewj said: You want to use an equation like this (for X coords) when drawing: win_x = (map_x - minimum_x) * scale So you need to compute the minimum X coordinate and the maximum X coordinate over the whole map. Then you can compute the scale like this: scale = win_width / (maximum_x - minimum_x) Same idea applies to Y coordinate, but you may need to invert things because map coordinates increase in the "north" (up) direction but screen Y coordinates typically increase in the down direction. Interesting. I'll see if I can implement this... 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.