Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Dodger revisited (need help)

This thread is locked; no one can reply to it. rss feed Print
 1   2   3 
Dodger revisited (need help)
miran
Member #2,407
June 2002

Some of you may remember Dodger, my entry for the TINS 72 hour competition earlier this year. As simple as it may be (you dodge enemies for as long as possible which is usually less than 20 seconds), it so far seems to be one of the most successful games I've ever made, judging by the number of entries in the online highscore database. :D

So I decided to add some finish to it. I fixed some bugs and added two new features: multiple language support and themes. Here's where I need your help. I need translations for as many languages as possible and I need new better looking themes, because right now there's only one (the original TINS dodger theme) and it's ugly.

Translating is very easy, takes no more than 10 minutes. Just copy english.lng to glarbongian.lng and change all English texts to Glarbongian. Replace Glarbongian with the name of your language. ;)

Themes are a little more involved but if anyone here feels artistic, I would appreciate all contributions. You need to draw a few sprites, make a couple of fonts (or not), three or four sounds, define a colour scheme and if you have musical skill, compose a 10 second loop in your favourite tracker. Details are in readme.txt.

Here's a screenshot with the ugly old theme:

{"name":"590442","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/9\/d99c0d877fcf81917d4d831e935d9092.jpg","w":640,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/9\/d99c0d877fcf81917d4d831e935d9092"}590442

And here is the game. The Windows binary package is about 1.3 MB and the Linux compatible source is around 400k. The source version includes all the data as well.

EDIT: Just uploaded v1.16 which adds support for Unicode characters in the language files!

EDIT: A couple of bugfixes later the version number is v1.18. :)

--
sig used to be here

OICW
Member #4,069
November 2003
avatar

Oh, that's sweet, right now I'm going to download it again and translate it to Glarbongian er Czech, well ok at least if I'll resist to play it.

Oh by the way, I liked that theme.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

kentl
Member #2,905
November 2002

I have a draft for a Swedish version attached to this message.

Question/Problem:

  • Will you be able to display the Swedish characters å, ä and ö?

  • The GAME_PAUSED text doesn't correspond to Q and A. I solved it this way: GAME_PAUSED=Spelet pausat! Tryck Q = Avsluta, C = Fortsätt spela

[edit]: Changed into a "completed" message.

miran
Member #2,407
June 2002

Thanks! )

Quote:

Will you be able to display the Swedish characters å, ä and ö?

I thought this would be a problem for some languages. At first I thought you could just replace the problematic chars with the closes match from the english alphabet, but I'm not in the process of making it possible to have any character. :)

Quote:

The GAME_PAUSED text doesn't correspond to Q and A. I solved it this way: GAME_PAUSED=Spelet pausat! Tryck Q = Avsluta, C = Fortsätt spela

Yeah, that's a problem too. The key bindings are hardcoded, so in a translation that doesn't make much sense... :-/

--
sig used to be here

OICW
Member #4,069
November 2003
avatar

Ok got it - I resisted to play and I have translated it into Czech - though I must admit that I let myself inspired by "slovenski.lng" :). Language file is attached. - search later.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

FMC
Member #4,431
March 2004
avatar

Italian version up :)
I had a hard time fitting things in so little space, Italian is quite verbose...

P.S. Marco don't kill me ;D (Marco and me try to maintain the Italian version of the allegro site... but i've been very lazy lately)

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

Onewing
Member #6,152
August 2005
avatar

How odd, I just started playing this again a few days ago...

------------
Solo-Games.org | My Tech Blog: The Digital Helm

miran
Member #2,407
June 2002

Wow, thanks people! Keep'em coming! ;D

Btw, I just uploaded v1.16 which now supports Unicode in language files and doesn't use bitmap fonts anymore (just TTF). It doesn't include the new languages yet though. To be able to use Unicode you must encode your language file in UTF8. Also because of a small mistake I made and didn't notice until just now, the first line of the language file must be empty (or a comment or something).

--
sig used to be here

Onewing
Member #6,152
August 2005
avatar

Quote:

judging by the number of entries in the online highscore database.

Out of curiosity, how many would that be?

I might make a theme. I need to practice doing this for my own personal study anyway. I see the music is in .it format, I wonder if ACID (my current music-making software) can make those...

------------
Solo-Games.org | My Tech Blog: The Digital Helm

OICW
Member #4,069
November 2003
avatar

Oops, the game crashes anytime I try to run a new game or play a replay. Also the intro doesn't play properly - only the first frame. Plus that font in highscores table doesn't seem to support unicode.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

GullRaDriel
Member #3,861
September 2003
avatar

French lng file attached. Keep up the good work !

EDIT: Changed first line to a comment, encoding in utf8, and cr-lf by lf only.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

OICW
Member #4,069
November 2003
avatar

Oops, where Gull?

Attached is unicode version of Czech translation with punctuation. The odd thing is that when I change first line into a comment it only shows default message on the scrollbar.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

GullRaDriel
Member #3,861
September 2003
avatar

quote OICW Oops, where Gull? /quote What ?
EDITED

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

miran
Member #2,407
June 2002

Damn, I uploaded a broken build. It's fixed now, I think, but I didn't change the version number. It gets a bit slow when there's a lot of text on screen though. Rendering all those true type fonts isn't very fast... :-/

Quote:

Out of curiosity, how many would that be?

A couple hundred unique ones, otherwise thousands. Not that much really, but I'd say more people played this game than any other I've made. Not that I've made many.

--
sig used to be here

FMC
Member #4,431
March 2004
avatar

Updated Italian lng

I reintroduced è and ù (i had used e' and u' instead) but they are not rendered correctly.

[edit]

Quote:

Rendering all those true type fonts isn't very fast...

You might consider switching to Open Layer... this type of game could be easily ported in little time :)

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

miran
Member #2,407
June 2002

Quote:

I reintroduced è and ù (i had used e' and u' instead) but they are not rendered correctly.

Yeah, the text that is printed with the small font doesn't show those characters because they're not in the font. But the big font does have most of them, I think...

Quote:

You might consider switching to Open Layer... this type of game could be easily ported in little time

Nah, just some clever caching of rendered bitmaps will do... :)

--
sig used to be here

OICW
Member #4,069
November 2003
avatar

That's better, but it overrides user settings, plus that help font doesn't support unicode. So czech help screen is screwed up.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

FMC
Member #4,431
March 2004
avatar

Quote:

the big font does have most of them, I think.

Nope, it doesn't render è... should i switch back to e'?

The Italian translation of Highscores (Migliori punteggi) doesn't really fit in the main menu and i don't see how to make it shorter, could you add a little more pixels of width?

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

Michael Faerber
Member #4,800
July 2004
avatar

Hier, weil ich so nett bin! ;)

However, I couldn't test it because I was too lazy to compile the game. :P
Is it a problem to use -> " <- in a translation?

--
"The basic of informatics is Microsoft Office." - An informatics teacher in our school
"Do you know Linux?" "Linux? Isn't that something for visually impaired people?"

OICW
Member #4,069
November 2003
avatar

FMC: Could you have some normal language ;D No just kidding. In Czech we say: "Nejlepší výsledky" but I used only the latter for translation and inside I say "Skóre" which is czech word originated in score.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

GullRaDriel
Member #3,861
September 2003
avatar

When changing the CPU usage, we must go back and in before seeing any change ( I mean it is not automatically refreshed )
At the presentation screen, when cliquing on the exit cross (on top right windows), I got a crash.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

miran
Member #2,407
June 2002

Quote:

that help font doesn't support unicode

Yeah and I think I'll leave it like that. Too much work to get all those characters in... :-/

Quote:

Nope, it doesn't render è... should i switch back to e'?

Strange, most accented characters are there in that particular font...

Quote:

The Italian translation of Highscores (Migliori punteggi) doesn't really fit in the main menu and i don't see how to make it shorter, could you add a little more pixels of width?

Yeah, sure, there's plenty of room there.

The French translation though has some very long words. There's not even enough room on the screen for some... :o

Quote:

Hier, weil ich so nett bin!

Danke schön! :)

Quote:

Is it a problem to use -> " <- in a translation?

I think it's OK.

Quote:

When changing the CPU usage, we must go back and in before seeing any change ( I mean it is not automatically refreshed )

I know, I'll fix that.

Quote:

At the presentation screen, when cliquing on the exit cross (on top right windows), I got a crash.

Yeah, it's mentioned in the readme. Sometimes the game crashes on exit for some reason. Happens every now and then... :-/

--
sig used to be here

OICW
Member #4,069
November 2003
avatar

Quote:

Yeah and I think I'll leave it like that. Too much work to get all those characters in...

Ok, I'll return back to non punctuation version then. By the way, you remind me myself with that attitude. ;)

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

GullRaDriel
Member #3,861
September 2003
avatar

EDIT: Attached new & tested language file.

Quote:

The French translation though has some very long words. There's not even enough room on the screen for some... :o

I am currently working on changing the suspected sentences ;-)

Quote:

Yeah, it's mentioned in the readme. Sometimes the game crashes on exit for some reason. Happens every now and then... :-/

As I am a badass, I will launch it by gdb everytime !

EDIT: got it each time I quit. Here is the GDB log

1Program received signal SIGSEGV, Segmentation fault.
20x004e99eb in ?? ()
3(gdb) bt
4#0 0x004e99eb in ?? ()
5#1 0x00b90000 in ?? ()
6#2 0x7c936abe in ntdll!iswdigit () from ntdll.dll
7#3 0x001daad0 in ?? ()
8#4 0x00b90000 in ?? ()
9#5 0x021daad8 in ?? ()
10#6 0x004e9aa6 in ?? ()
11#7 0x00000000 in ?? () from
12#8 0x0023f010 in ?? ()
13#9 0x021daad0 in ?? ()
14#10 0x00b90000 in ?? ()
15#11 0xffffffff in ?? ()
16#12 0x00000000 in ?? () from
17#13 0x020d6e30 in ?? ()
18#14 0x0023f010 in ?? ()
19#15 0x00000008 in ?? ()
20#16 0x00000000 in ?? () from
21#17 0x0023f428 in ?? ()
22#18 0x004e9f7f in ?? ()
23#19 0x020d6e30 in ?? ()
24#20 0x00000000 in ?? () from
25#21 0x0023f010 in ?? ()
26#22 0x00000058 in ?? ()
27#23 0x00000008 in ?? ()
28#24 0x00000000 in ?? () from
29#25 0xffffffff in ?? ()
30#26 0x0023f23c in ?? ()
31#27 0x706d6554 in ?? ()
32#28 0x021d0073 in ?? ()
33#29 0x000007d8 in ?? ()
34#30 0x02208f40 in ?? ()
35#31 0x021daad8 in ?? ()
36#32 0x00000001 in ?? ()
37#33 0x02208f40 in ?? ()
38#34 0x00000000 in ?? () from
39#35 0x00000000 in ?? () from
40#36 0x02ffffff in ?? ()
41#37 0x02208f38 in ?? ()
42#38 0x00000000 in ?? () from
43#39 0x7c936abe in ntdll!iswdigit () from ntdll.dll
44#40 0x0223f078 in ?? ()
45#41 0x7c97cde9 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll
46#42 0x00b90000 in ?? ()
47#43 0x7c936abe in ntdll!iswdigit () from ntdll.dll
48#44 0x0023f088 in ?? ()
49#45 0x7c97cde9 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll
50#46 0x00b90000 in ?? ()
51#47 0x00000000 in ?? () from
52#48 0x021daad0 in ?? ()
53#49 0x00b90000 in ?? ()
54#50 0x021daad8 in ?? ()
55#51 0x0023f084 in ?? ()
56#52 0x0023f0e8 in ?? ()
57#53 0x7c91ee18 in strchr () from ntdll.dll
58#54 0x00000000 in ?? () from
59#55 0x00b90000 in ?? ()
60#56 0x00000000 in ?? () from
61#57 0x0023f0f8 in ?? ()
62#58 0x7c97e0f0 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll
63#59 0x00b90608 in ?? ()
64#60 0x7c97e0d4 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll
65#61 0x00b90000 in ?? ()
66#62 0x021daad8 in ?? ()
67#63 0x40000060 in ?? ()
68#64 0x0023f0d8 in ?? ()
69#65 0x7c97cde9 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll
70#66 0x00b90000 in ?? ()
71#67 0x00000000 in ?? () from
72#68 0x021daad0 in ?? ()
73#69 0x00000038 in ?? ()
74#70 0x020e7500 in ?? ()
75#71 0x00b90000 in ?? ()
76#72 0x0023f138 in ?? ()
77#73 0x000007d8 in ?? ()
78#74 0x021daad0 in ?? ()
79#75 0x00b90000 in ?? ()
80#76 0x00000000 in ?? () from
81#77 0x0023f1c0 in ?? ()
82#78 0x0101ee18 in nView!WMAssociate ()
83Previous frame inner to this frame (corrupt stack?)

EDIT2:

BugList:
Options:
Grafics:when switching from full to windowed, problem : the windows size is not adjusted (the windowed new one is taking my full desktop)

All items in option menu: no one is refreshing automatically.

The exiting bug seem to only appear when hitting the cross. Nothing happens when selecting exit from the menu.

The keyboard detection (if any) is not working properly, I got an azery (not qwaerty) and Q is not A ;-)

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Tomasz Grajewski
Member #4,284
February 2004

Very nice game, but it runs terribly slow on my even slower PC. Anyway I enjoyed playing DODGER.

BUG? I ran it in the 16 bpp mode (via allegro.cfg), but the game sprites weren't rendered, only black boxes shown on screen. Game was playable this way, but I think, that you need to fix something with your color conversion code.

I attached a full POLISH translation. I've made a mixed version: with unicode characters and without them, as one of the fonts doesn't display them. I hope, that you will use it :)

___________________________________________________________________________________________
mBlocks - a Tetris clone written in JavaScript | Merix Studio - website design & development | Zeitgeist

 1   2   3 


Go to: