Author |
Message |
tansey Novice
Joined: Nov 03 2004 Posts: 53 Offline
|
Posted: Sun Jan 21, 2007 5:00 pm Post subject: SS Map Writer |
|
|
|
|
I got an email on a slow Saturday with a programming request. The following is how the problem was described:
"I am making a tutorial arena for new players - in the arena there will be a bunch of text all over the place describing things, that the players can read - directions, if you will. Now I want to try and keep the lvz for those texts to be as small as possible, a way to do that would be to have each letter as an individual picture, and just call upon the image everytime I want to place it. The problem with that, is that manually placing the letters would be incredibly time consuming."
Solution: Subspace Map Writer.
Thanks go out to Chalk Eagle for ripping the SS fonts.
1/26/07: Added new fonts and save/load support for message sessions.
Last edited by tansey on Sat Jan 27, 2007 12:02 am, edited 1 time in total |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Sun Jan 21, 2007 5:15 pm Post subject: |
|
|
|
|
As a backup, attached file here as well.
Possible future alterations would be to have the ability to name the LVZ in the program, and when clicked Generate, would create a subfolder named that, copy the needed image files there, and create the ini file. Then you can have multiple projects and reload the ini file for ease of editing.
The NTFS filesystem supports hard links (files in different locations both pointing to same data on hard drive). I've not worked with .NET, so I cannot say how to do this through that system, but it isn't that difficult for C, you just need to check to see if you can support hard links. Doing hard links would allow you to keep your folder organization and to create subfolders for new projects without wasting disk space by constantly copying small files.
SS_MapWriter 2007-01-26.zip - 343.17 KB
File downloaded or viewed 44 time(s)
SS_MapWriter.zip - 365.84 KB
File downloaded or viewed 44 time(s)
Last edited by Mine GO BOOM on Sat Jan 27, 2007 12:43 am, edited 1 time in total |
|
Back to top |
|
|
Chambahs Power attack
Joined: Jun 19 2005 Posts: 820 Offline
|
Posted: Sun Jan 21, 2007 5:24 pm Post subject: |
|
|
|
|
Wow, i was actually thinking of a way to do this, like...5 minutes ago..thanks!
|
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Sun Jan 21, 2007 8:45 pm Post subject: |
|
|
|
|
But the limit is 255 different images... There is no limit on the number of mapobjects (well, probably, but its way more than 255), so I assume with 40-50 IMAGE# you can define most useful characters, so its not much of a problem, unless you need alot of other images.
...Edit: Ok I tried the program, I understand... it should warn user when more than 255 different characters are used
Good work though... It's a feature we'll probably include in DCME if we ever support LVZs _________________ (Insert a bunch of dead links here)
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Jan 22, 2007 8:43 am Post subject: |
|
|
|
|
Mine GO BOOM wrote: | The NTFS filesystem supports hard links (files in different locations both pointing to same data on hard drive). I've not worked with .NET, so I cannot say how to do this through that system, but it isn't that difficult for C, you just need to check to see if you can support hard links. Doing hard links would allow you to keep your folder organization and to create subfolders for new projects without wasting disk space by constantly copying small files. |
Having 3-4 copies of a set of 30 odd 5kb PNGs isn't what I'd call wasting space.
The fact that none of the tools that come with windows support hard links would mean total confusion for someone with even a relatively good knowledge of computers (talking about users, not programmers). _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me
|
|
Back to top |
|
|
ChalkEagle Newbie
Joined: May 31 2004 Posts: 23 Offline
|
Posted: Fri Jan 26, 2007 5:49 pm Post subject: |
|
|
|
|
yea, the 255 images thing is frustrating. You can still use the program tho if you want to stick to just two colors of text (for a total maximum of 190 characters - and then you can throw a couple odd colors in there to fill the void - at least I think so...i was able to put about 2000+ characters of just green in).
(For anyone who isn't sure what the problem looks like:
http://img126.imageshack.us/img126/9785/screenshot113ld5.png )
The bottom line should say "item as you pass by."
Where does the problem stem from anyway? I assume...client?
Cheers,
Chalk Eagle
|
|
Back to top |
|
|
tansey Novice
Joined: Nov 03 2004 Posts: 53 Offline
|
Posted: Sat Jan 27, 2007 12:03 am Post subject: |
|
|
|
|
I posted an update, see the original post for more info.
|
|
Back to top |
|
|
ChalkEagle Newbie
Joined: May 31 2004 Posts: 23 Offline
|
Posted: Sun Apr 01, 2007 12:50 pm Post subject: |
|
|
|
|
The naming of one of the text graphic files is off for the Yellow Uppercase O. It is "o_yellow.png" and it should be "o_upper_yellow.png"
Cheers,
Chalk Eagle
|
|
Back to top |
|
|
tansey Novice
Joined: Nov 03 2004 Posts: 53 Offline
|
Posted: Mon Jul 09, 2007 2:49 pm Post subject: Source |
|
|
|
|
Sorry, I never uploaded the source for this. If anyone is still interested (or in case I get hit by a bus tomorrow and SS is updated breaking the code), I attached the source for this project.
SS_MapWriter.zip - 847.56 KB
File downloaded or viewed 37 time(s)
|
|
Back to top |
|
|
|