Jump to content

(RELEASED) WADdle Plot: DOOM wadfile level plotter


Recommended Posts

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

waddle_plot.gif

Edited by ChAoS PsYcHe
Tool Released

Share this post


Link to post
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. 

Share this post


Link to post

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...

Share this post


Link to post
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.

Share this post


Link to post
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...

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...