YesNoOk
avatar

Display picture of a stage? (Read 1868 times)

Started by GoldingCircle, December 03, 2011, 05:36:19 pm
Share this topic:
Display picture of a stage?
#1  December 03, 2011, 05:36:19 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
Is it possible display pictures instead of words in the stage selection in the select screen?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Display picture of a stage?
#2  December 03, 2011, 06:47:14 pm
  • **
  • That's right. Get all the marmalade Mr. Giraffe
Its possible but if I recall you could only implement something like that by editing the screenpack or something like that. I know a while back WooshaQ had a tutorial on it you could try looking for it.
Re: Display picture of a stage?
#3  December 03, 2011, 06:53:48 pm
  • ******
  • 90's Kawaii
  • :thinking:
    • Guatemala
It's possible but extremely tedious and unpractical. You basically have to take a picture of every single one of your stages and make a font with them. Each stage fits and specific character. Then you rename every stage to its fitting character.

The problem is that you have to update the font each time you add a new stage, and because of the 256 color limit the stages are going to look bad.     
Last Edit: December 03, 2011, 11:30:41 pm by ReDead
Re: Display picture of a stage?
#4  December 03, 2011, 09:05:48 pm
  • ***
^yeah that would suck, hopefully someone comes up with a different method.  for example, after you select your characters it opens a select stage screen with both the font and a seperate picture  you can add to you're stage .sff and can be read by the system
Re: Display picture of a stage?
#5  December 03, 2011, 10:32:51 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
1.1 fixes it with 32bit fonts. Done it, works really well, no colour loss at all. But that's not out yet and we have no clue on when it will be.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#6  December 07, 2011, 05:04:29 am
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
It's possible but extremely tedious and unpractical. You basically have to take a picture of every single one of your stages and make a font with them. Each stage fits and specific character. Then you rename every stage to its fitting character.

The problem is that you have to update the font each time you add a new stage, and because of the 256 color limit the stages are going to look bad.   

Where do I show the picture of the stage in place of adding the font?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Display picture of a stage?
#7  December 07, 2011, 06:30:13 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
The picture of the stage IS the font. You make a font out of stage pictures. Then rather than having "Ryu's Dojo" you rename the stage "A", and it displays the letter/stagepic for A.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#8  December 08, 2011, 04:09:17 am
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
The picture of the stage IS the font. You make a font out of stage pictures. Then rather than having "Ryu's Dojo" you rename the stage "A", and it displays the letter/stagepic for A.
I know that! But where do I add my font in the system.def? And to display at the screen?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Display picture of a stage?
#9  December 08, 2011, 06:25:06 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You add it in the same place you do for every screenpack ever. And you define it in the ONLY place the screenpack will let you. If you read system.def (and please tell me you're looking at that already prior to what you're asking for) you'll figure it out.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#10  December 08, 2011, 05:15:52 pm
  • ***
hi cyanide, i am not a stage coder or a screenpacker, but i also have a question from my friend who does not have an account here.

he tried and successfully made stage preview, but he said it can only be done for maximum of 9 stages? is it true? or he did something wrong?
Re: Display picture of a stage?
#11  December 08, 2011, 07:04:12 pm
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
The maximum of stages to display is the total number of LETTERS and NUMBERS etc mugen uses.
So it's far more than 9.
Creating this system is replacing any text letter or number by a preview of a stage.
Re: Display picture of a stage?
#12  December 08, 2011, 08:38:38 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
It can be done for the full range of a font. so, all caps, all small, all numbers, few special characters. You can certainly have more than NINE.

I imagine he edited a font with only 9 things in it. Possibly the timer, make him learn how fonts actually work an add a few more letters in.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#13  December 09, 2011, 04:45:53 am
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
You add it in the same place you do for every screenpack ever. And you define it in the ONLY place the screenpack will let you. If you read system.def (and please tell me you're looking at that already prior to what you're asking for) you'll figure it out.
--;
Ok! I did this in system.DEF:
Code:
[en.Files]
spr = system.sff          ;Filename of sprite data
snd = system.snd          ;Filename of sound data
logo.storyboard =logo.def         ;Logo storyboard definition (optional)
intro.storyboard =intro.def        ;Intro storyboard definition (optional)
select = select.def       ;Character and stage selection list
fight = fight.def         ;Fight definition filename
;System fonts
font1 = f-naruto.def
font2 = f-naruto.def
font2.height = 36
font3 = f-naruto.def
font3.height = 50
font4 = f-naruto.def
font4.height = 50
font5 = f-naruto.def
font5.height = 50
;font5.height = 36         ;Uncomment to override the size of the font (Truetype fonts only)
font6 = f-naruto.def
font7 = Stage.def
and this in the stage.def:
Code:
[Info]
 ;Name of the stage.
name = "Snowy"
displayname = "Ice"
Also here is the font:
Code:
[Map]
? 1 121
Ninja 127 100
Uchiha 227 100
Train 327 100
Lee 427 100
Ramen 527 100
Konoha 627 100
Stage 727 100
Kakashi 727 100
Kon 827 100
Upper 927 100
Zabuza 1027 100
Konoha 1127 100
Ice 1227 100
Garden 1327 100
--;
It still doesn't show. What's wrong?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Display picture of a stage?
#14  December 09, 2011, 07:02:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's not a font. That's why. Fonts take letters, that's what makes them fonts.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#15  December 09, 2011, 07:31:34 am
  • ***
@Cyanide
yeah i told him (before i posted here) that even if i am not a screenpacker, the limit of 9 for stage preview is really odd, meaning it is highly likely he messed up or forgot to do something, though i don't know it because i dont make screenpacks

now he said he managed to make more than 9 stage previews work but he said this
Quote
the random stage starts in the select screen "left"
after the random stage the 9 stages are in the "middle"
and than the next stages are of the "right" side
any ideas on how to solve this?

btw the reason i am too involved in his problem is because the screenpack is supposed to be made for me.

pls help. thanks
Re: Display picture of a stage?
#16  December 09, 2011, 07:37:19 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
He's messed up his font spacing. Each picture is say, 100 pixels. You define with

A 0,99
B 100,199
C 200,299

And so on. You need to name the stages in their .def files with those letters. So rather than Ryu's stage, all it is is A. Then the font will display ONE letter. I get the feeling he's displaying the A in ryu's stage instead so it's being positioned in relation to the rest of the letters. In addition you need to tell a font about it's width and spacing. Get him to send you the text file he's using and start your own topic please.



In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#17  December 09, 2011, 09:41:20 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
That's not a font. That's why. Fonts take letters, that's what makes them fonts.

 --;
Ok! I did this in system.DEF:
Code:
[en.Files]
spr = system.sff          ;Filename of sprite data
snd = system.snd          ;Filename of sound data
logo.storyboard =logo.def         ;Logo storyboard definition (optional)
intro.storyboard =intro.def        ;Intro storyboard definition (optional)
select = select.def       ;Character and stage selection list
fight = fight.def         ;Fight definition filename
;System fonts
font1 = f-naruto.def
font2 = f-naruto.def
font2.height = 36
font3 = f-naruto.def
font3.height = 50
font4 = f-naruto.def
font4.height = 50
font5 = f-naruto.def
font5.height = 50
;font5.height = 36         ;Uncomment to override the size of the font (Truetype fonts only)
font6 = f-naruto.def
font7 = Stage.def
and here's an example of one of my random stages:
Code:
[Info]
 ;Name of the stage.
name = "Snowy"
displayname = "D"
Also here is the font of Stage.def:
Code:
[Map]
? 1 121
A 127 100
B 227 100
C 327 100
D 427 100
E 527 100
F 627 100
G 727 100
H 727 100
I 827 100
J 927 100
K 1027 100
L 1127 100
M 1227 100
N 1327 100
--;
It still doesn't show. What's wrong?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Display picture of a stage?
#18  December 09, 2011, 09:43:42 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
f-naruto.def is obviously a ttf font, as those take def files. What you have needs to be converted to a .fnt.

Really, learn how to make a font.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Display picture of a stage?
#19  December 12, 2011, 09:13:30 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
f-naruto.def is obviously a ttf font, as those take def files. What you have needs to be converted to a .fnt.

Really, learn how to make a font.
--;
I see that is not the problem.
You didn't tell me about this:
Code:
stage.font = 4,0,0
It works now since I changed that and now I have another problem.
Random does not show on the select screen so how can I fix that? also how can I show the font word along with the picture?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.