MovingTarget | 2008-01-23 21:20
Python map packaging script RC4
45
points ]
 (6 votes)
A Python packager that ensures proper directory structure

This is a little Python script I whipped up which
takes the name of the map you want to package, and
Sauerbraten's base directory, and makes a directory
structure with your map, cfg file, readme, and screenshot.
It then mashes the lot into a compressed .zip
archive, and deletes the original folders.

It *should* be cross-platform, because I use os (.path)
methods, but I've only tested it on Windows.

Simply run the script, follow instructions, and you will
have a compressed .zip archive with the name of your map
sitting in your current directory. So all you have to do is
post it on Quadropolis. No newbies getting their nodes
deleted, and no admins angry at bad directory structure!
We're all happy.

Windows users: There is an exe in there for you, so don't
panic if you don't have Python installed.

*UPDATE*: Added support for Blood Frontier, SVN version
*UPDATE TWO*: Added zip file support, cleaned up code a lot
*UPDATE THREE*: Added compression support, made exe for Windows users
*UPDATE FOUR*: [I think] I've fixed all MeatROme's tips (hope you can revise your rating!)
Added .exe for Windows users, attachment for linux users. README goes into more detail

setup.exe (1.32 MB)
45
points
 (6 votes)
AttachmentSize
linux.zip1.97 KB
User login
Created 2012-02-10 07:05
1 hour 38 min ago
Created 2012-02-10 07:02
1 hour 40 min ago
Created 2012-02-10 06:58
1 hour 45 min ago
10
points ]
 (1 vote)
Created 2012-02-07 21:59
2 days 10 hours ago
Created 2012-01-07 16:21
4 weeks 5 days ago
59
points ]
 (6 votes)
Created 2012-02-04 09:29
5 days 23 hours ago
Created 2012-02-09 23:23
9 hours 19 min ago
Created 2012-02-09 20:20
12 hours 22 min ago
50
points ]
 (5 votes)
Created 2010-02-18 22:58
1 year 50 weeks ago
Created 2012-02-05 18:51
4 days 13 hours ago
Greaserpirate
20
points ]
 (3 votes)
Created 2012-01-25 03:18
2 weeks 2 days ago
Chaos
Created 2012-02-02 01:28
1 week 1 day ago
10
points ]
 (1 vote)
Created 2012-02-04 21:45
5 days 10 hours ago
15
points ]
 (2 votes)
Created 2011-10-22 17:57
15 weeks 5 days ago
13
points ]
 (4 votes)
Created 2012-01-15 14:45
3 weeks 4 days ago
Created 2012-02-02 12:37
1 week 20 hours ago
14
points ]
 (2 votes)
Created 2012-02-01 01:19
1 week 2 days ago
Created 2012-01-25 00:02
2 weeks 2 days ago
Created 2012-01-27 20:51
1 week 6 days ago
lopsie4
23
points ]
 (4 votes)
Created 2012-01-25 09:15
2 weeks 1 day ago
Users on Quadropolis
9 guests & 1 user online