Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
SS Map Writer

 
Post new topic   Reply to topic Printable version
 View previous topic  CLC -> Smaller LVZ Post :: Post ChatGui (alpha)  View next topic  
Author Message
tansey
Novice


Joined: Nov 03 2004
Posts: 53
Offline

PostPosted: Sun Jan 21, 2007 5:00 pm    Post subject: SS Map Writer Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Sun Jan 21, 2007 5:15 pm    Post subject: Reply to topic Reply with quote

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 42 time(s)


Last edited by Mine GO BOOM on Sat Jan 27, 2007 12:43 am, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List Send email
Chambahs
Power attack
Power attack


Joined: Jun 19 2005
Posts: 820
Offline

PostPosted: Sun Jan 21, 2007 5:24 pm    Post subject: Reply to topic Reply with quote

Wow, i was actually thinking of a way to do this, like...5 minutes ago..thanks!
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Jan 21, 2007 5:51 pm    Post subject: Reply to topic Reply with quote

if you use more than 255 IMAGE's in any arena in lvz you'll run into problems. Also, the source code is missing . Good work though.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Sun Jan 21, 2007 8:45 pm    Post subject: Reply to topic Reply with quote

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 icon_smile.gif
_________________
(Insert a bunch of dead links here)
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Jan 22, 2007 8:43 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
ChalkEagle
Newbie


Joined: May 31 2004
Posts: 23
Offline

PostPosted: Fri Jan 26, 2007 5:49 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
tansey
Novice


Joined: Nov 03 2004
Posts: 53
Offline

PostPosted: Sat Jan 27, 2007 12:03 am    Post subject: Reply to topic Reply with quote

I posted an update, see the original post for more info.
Back to top
View users profile Send private message Add User to Ignore List
ChalkEagle
Newbie


Joined: May 31 2004
Posts: 23
Offline

PostPosted: Sun Apr 01, 2007 12:50 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
tansey
Novice


Joined: Nov 03 2004
Posts: 53
Offline

PostPosted: Mon Jul 09, 2007 2:49 pm    Post subject: Source Reply to topic Reply with quote

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 36 time(s)
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Misc User Apps All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 657 page(s) served in previous 5 minutes.

phpBB Created this page in 0.436281 seconds : 37 queries executed (92.1%): GZIP compression disabled