Another newbie looking for the most basic of pointers

Me_man

New member
Hello all. I've been toying around with the idea of trying to make a game for awhile now, and figured why not give it a shot.

I've been lurking around this site for a couple weeks or so, trying to figure out where to start. Glad to see there is an active community here.

I guess the first place to start is by learning to make modifications to existing games. Could someone give me a few recommendations as to a few titles that are coded fairly neatly, with naming conventions that are fairly easy to follow? I don't know how much variance there is between titles as far as this goes.

Also wondering, what are the graphical capabilities of OpenBOR? I know about what alot of these games look like, then lately I've seen some videos that were beyond what I thought the engine was capable of. I've seen the specs compared to other platforms, but don't really know how that relates to actual possibilities. I mean, is it possible to make sprites from modern, realistic looking 3d models at 60fps and have them perform well? I know about the 256 colors per sprite limitation, but I'd imagine that they can still look pretty good in spite of that. Could they still perform well like that? Even if there are 10-15 AI opponents on the screen?
Can someone give the name of some titles that push the limits graphically?

I have paxploded one game and looked at it's contents, dug around for awhile, and while I understand a little of what's going on in there, I don't even know where to start with modding.

Thanks to all who took the time to read my post.
 
Welcome Me_man,

Let's start with graphics. Honestly I think you're getting the cart before the horse asking what the limits are. Suffice to say until you gain full proficiency with the engine they are far more than what you can do - and probably still will be after. That's not a knock on your abilities - OpenBOR is advertised as the world's most powerful 2D sprite engine for a reason. Here's a basic overview of the graphical suite. The whole thing could probably summed up like this: We don't have pixel shading. We do have everything else.

Couple of notes on color. First, there is a mode that allows each frame to have its own color palette instead of one for the model. This is generally a really bad idea because it increases memory consumption and means you can't have alternate palettes for the model, but it's there as an option. Second, once you get a handle on binding entities together and use of the drawmethods, it is possible to build 24bit color RGB sprites. Background layers have native 24bit color support right out of the gate. Number of colors in use by models, layers, in total, etc. are completely immaterial to performance.

You are allowed exactly 5000 sprites on screen, no more or less. There is no limit to size or shape. Performance is affected mostly by your platform and by how many pixels are in play. Using 480*272 (standard definition widescreen), any run of the mill PC can push ~1000 Ryu sized entities on screen without a hiccup. Jump the resolution up to 1080p and you'll start to see slowdown after a few dozen.

Now, so far as standard conventions within modules - sorry, there just aren't any . Several of us have tried to establish codified conventions through the years, but it's herding cats. Everyone has their own way of naming objects, organizing folders, image types, etc. and each one of us thinks ours is the best.  :P

Your best bet is get specific as possible in your questioning - figure out what you want to do first, and ask away. We'll be able to give you more focused advice or point you to the relevant article, example, or whatever. Oh, and never ask "is it possible". There's no "if" in OpenBOR, the question is always "how". :)

It's hard to say anything has pushed the engine to its limits - again the limits are all over the place depending on your portability goals. But here's a few examples of visually impressive work:

https://www.youtube.com/watch?v=rQRMZV3kMEE

https://www.youtube.com/watch?v=GOsYJkdqbOk

https://www.youtube.com/watch?v=Z1jWSLeZvtk

https://www.youtube.com/watch?v=x-bpzc9iLS8

https://www.youtube.com/watch?v=AIQnoTDj2Tk
 
Thank you Damon Caskey and nsw25 for your replies.

Damon Caskey - Definitely I need to do many more basic things before I could start to think about advanced graphics. I just had a spark of curiosity after seeing some of these more visually impressive games lately.

The examples you've shown are all well done. I have seen 3 of these games, but not the first or the last one. The first one is visually stunning, especially when I found a hd video of it. The last one, has very detailed character images, though it looks like they could use more frames (motion). I have seen another remake of Golden axe (possibly on this site?) where the background was done in multiple layers, so that the "further away" scenery scrolls slower and the "closer" background scenery scrolls faster. That is something I'd like to incorporate if I ever get there, about 1000 steps down the road.

nsw25 - Besides the main character and the two pterodactyls, is each one of those coins an object?
I knew you could make images of 3d models and use them in games. I did not know that you can use 3d objects in games directly. This just keeps getting more interesting.


My goal, ultimately, would be to create a old school styled, side scrolling beat 'em up type game, with good quality graphics, (imagery and effects) that I could insert my own humor into.
Before I could get to that point, I'd have to be able to make a stage, basic at first, make it scroll, be able to create obstacles, both breakable and non-breakable, create characters, moves, etc. etc.

First I would like to start by trying to modify an existing side-scroller. Could you offer recommendations of what might be something to look at? Something with enough aspects to play around with, but not too many details to easily be overwhelmed?

I'd probably start by trying to create a move (both images and parameters) and get them to work in the game. Even if at first, say I make images that aren't quite the same to the original, it should make for a decent learning experience. I could then gradually replace more of a character's moves, walking, running, standing, jumping. Or maybe start with idle stance and work from there? (then walk, run, jump, etc.) Not sure yet. Any and all suggestions are welcome.
 
Thank you Damon Caskey and nsw25 for your replies.

Glad to help.

The last one, has very detailed character images, though it looks like they could use more frames (motion).

That module is brand new, made by nsw25. I agree it's pretty choppy in play, but if I'm not mistaken that's by choice and he could have easily had more more fluid animation given time. There's no practical limit to the number of animations or frames in an animation. I included it because I think the use of in game video cuts is a nice visual showcase.

I knew you could make images of 3d models and use them in games. I did not know that you can use 3d objects in games directly. This just keeps getting more interesting.

OpenBOR does not use 3D models or assets - those coins are sprites, and frankly that module is not a good example at all of how to do it. We have several modules in place (Hyperduel comes to mind) that push sprite counts into the low thousands with no frame-rate loss. This coin collection module would be best implemented with a grid structure, but that's another lengthy discussion. Aside from capturing 3D assets as sprites, you could draw polygons using the built in vector suite - if you're insane that is. :P

I have seen another remake of Golden axe (possibly on this site?) where the background was done in multiple layers, so that the "further away" scenery scrolls slower and the "closer" background scenery scrolls faster. That is something I'd like to incorporate if I ever get there, about 1000 steps down the road.

Are you referring to this?

https://www.youtube.com/watch?v=c9rrBEPQzKY

That's my work, and I can tell you there's nothing complicated about it. I'm just making use of OpenBOR's native layer system. The perspective effect is built right in. The only thing special I'm doing is a timer script that changes the stage palette to simulate early morning to late evening.

My goal, ultimately, would be to create a old school styled, side scrolling beat 'em up type game, with good quality graphics, (imagery and effects) that I could insert my own humor into.
Before I could get to that point, I'd have to be able to make a stage, basic at first, make it scroll, be able to create obstacles, both breakable and non-breakable, create characters, moves, etc. etc.

That is specifically what OpenBOR is optimized to do - you won't find a better engine for it. Everything you mentioned is native. Scrolling, breakable obstacles, and attack animations are already coded in. All you do is provide the parameters for them. It's only when you start getting into things like advanced logic "If the guy is wearing blue, I want to automatically change my basic attack to kick him in the crotch"
or slam moves like Zangiefs Piledriver that you need to get into coding. When that does happen, we have plenty of examples.

DC
 
  personally love the Open Bor engine. Working on my first project, Loving it! I am having more fun creating something than playing.  Open Bor is the closest I think you can get to creating games on par with the greatest era...the arcade era, and have such a powerful flexible engine. I learn something everyday about it. Taking in account He man and She-ra, Jennifer and GI Joe alone are titles that blow many software company games out of the water. It's a lot of work and learning but I see now it is doable. I certainly would recommend to anyone who might not have the education but can take the time to  learn processes and be creative. Trial and error. But you learn from error....and the reward is going to be the satisfaction of making something fun and based on my own personal and psychological eccentricity in terms of building or adding to a great character or franchise,  I'm no artists so sprites are a must I can't draw smiley faces lol. But if you can find a nice selection of sprites and hopefully be able to stay within the theme (and in many cases you can) your wanted you can really learn and contribute something that you designed  from usually a conceptional mental picture. But never get sold on any one idea. Don;t limit yourself but always be willing to compromise or find different ways to accomplish specific ideas. I love this engine and this site so much! I never even close the browser lol because I will wake up at night and want to go see what is new in the forum anything whther I am at home or the Brian center lol. Being able to look at mods have been very helpful and I read the manual every night I can. And the people are great! I have my problems learning and get discouraged but I believe if I try my best I can do it. Hope you give it a shot too!
 
Thank you both for the further replies.
That Golden Axe video is the one I saw. I remember reading about the layers some when I came across the video before. I'll definitely revisit that when the time is right.

For now, I think I've decided on my first mini project. First thing I figured to do, was edit an existing game. I figured start from the beginning, so I'm looking at Beats of Rage. Luckily for me the files are loaded with comments which help someone such as myself to understand their workings. I decided I'd like to add some moves. With a little web crawling, I was able to find some sprite sources and before too long I found what looks to be a nearly complete (607 images) kofxi - Blue Mary sprite zip folder, and it seems they're the exact same size as in BOR.

I look at the text files within the character folders, and the way the animations, and their references to the images, their delays and everything seems, for the most part, pretty self-explanatory. bbox, I'm not so sure on yet. (Looks like maybe y-min, y-max, x-min, x-max???) The series of attack numbers, I also can't make sense of just yet.
What I can't tell at all so far, is how any of this is triggered. What makes a button initiate an attack? Where this is defined? If I add another series of images, perhaps attack4, or grabattack3 or throw2, how do I call it in the game? How would I set one up using an unused attack button? How would I set one up using a combination of directions and the existing attack button? How would I go about adding an additional throw? Then triggering it by different means?
Perhaps there is a tutorial on doing something similar? or this is (likely) somewhere in the guide, that I have yet to find. I see under the "Attack types & animation limit" sections a few parameters that I'd likely need to edit. I haven't yet found where though.

Thanks again to all who have, and will help me along with this.
 
Damon Caskey said:
Couple of notes on color. First, there is a mode that allows each frame to have its own color palette instead of one for the model. This is generally a really bad idea because it increases memory consumption and means you can't have alternate palettes for the model, but it's there as an option.
  Impressive and very informative post.  Now when you mention that there's an option to choose from color modwl palettes what is that option exactly? Are you referring to .gif or .png format or Is there a option via code or a particular engine update?
 
Speaking or colors and pallets, on the simpler end, how do you enable alternate colors?

For instance, in openBOR Mary's file has a line:
"remap data/chars/mary/stand1.gif data/chars/mary/alt1"
where alt1 is the same as stand1 with different colors.

I tried adding .gif to alt1. I tried listing the files as "palette" and "alternatepal" and I tried adding a line "colourselect 1". Nothing I've tried has worked to allow me to choose color so far.

It's very likely I could be overlooking something simple.
 
Alternatepal , as name implies, is used when you have alternate palette. Remaps from Beats of Rage are not alternate palettes, therefore declaring them with alternatepal will look as if there's nothing happening when you change color/palette.

If you want to make simple alternate palette for testing, just open an image from character then alter its hue, saturation, brightness, contrast until you see significant change than save it as test image. Declare this as alternate palette and try it in game.
 
Thank you,
I tried doing it that way, through obeditor.
It created a new gif image, with different colors, and it added a "pallette" entry in the character's file, with the path and filename of the original, and it added an "alternatepal" entry that just had #"filename" after it, without the .gif extension. At this point under obeditor lists an error on that line "To less parameters for alternatepal".  Adding the .gif extension gives a path error, that it's looking in the Openbor program directory. After adding the /data/char path, the error goes away, but I'm still unable to select an alternate color for the character.

I don't understand either, why in the pak as I downloaded it from here, these lines, two comment and one active appear in the character's file:
# To create an alternate colour version, enter the path to
# an image in the original, and one in the alternative colourset.
remap data/chars/mary/stand1.gif data/chars/mary/alt1

where alt1 is a different colored version of stand1.gif. Perhaps if P1 and P2 both use her P2 will have the alternate colors? I have yet to be able to select colors manually within the game.
 
Me_man said:
Speaking or colors and pallets, on the simpler end, how do you enable alternate colors?

Use the latest version of the engine

In the models.txt file type

colourselect  1

In my game I use the palette file type .act to define which alternate colour but you can use .gif or .png image files to define your colours

Here's an example from my game

o9qbxaB.jpg


BsCVyJM.jpg


IRB7kUk.jpg


xRVxLil.jpg


In your characters text file type

palette              data/chars/venom/1.act  #this is the default colour
alternatepal    data/chars/venom/2.act  # this is a alternate colour
alternatepal    data/chars/venom/3.act
alternatepal    data/chars/venom/4.act


You can use image file too

alternatepal    data/chars/venom/2.gif


Sorry for crappy images, I'm not at home and having to use mobile phone and mobile phone internet while abroad to do everything.

 
Me_man said:

Me_man,

danno pretty much has it covered on how to use palettes. I just want to emphasize for you - do NOT try to use remap. That is a backward compatibility throwback from years ago when OpenBOR used a single palette for everything in the module. In fact, be very careful with older documentation in general. Pretty much all of the older headaches and limitations listed in older documentation no longer exist or have been supplanted with simpler methods.

DC
 
danno- Thank you very much. The pictures were more than adequate, however the text was what really helped. Especially the part about putting colourselect in the MODELS.TXT :-[ (opposed to the character's .txt.) I would like to ask, what is the editing program you are using in those pictures?

I still haven't quite got it working, but that made the colors selectable, It made the alt1 that was already defined in the remap command selectable, and however many alternatepal entries I made through obeditor would scroll through as silhouettes, and those where I'd enter path/image.gif manually would be the original colors.

I thought it just mapped the pixels or pixel groups to those in the other image and used their colors, but now I suspect there is more happening here than meets the eye. Strangely, when I made a gif in paintbrush, the same size as the master picture, with 3 simple black lines, I got radioactive Mary. (see pic below) Come to think of it, this may have been from something I made earlier in obeditor by adjusting the hue, colors, brightness, etc to extremes. However I was surprised to see it while the gif is not mentioned in the character's .txt file.

I can only assume I am doing something incorrectly within the obeditor program. It seems odd to me that whenever I've used it to try to insert an alternate palette color, it writes a seemingly unusable entry into the character's .txt file, in the form of:
alternatepal #(filename without path or extension)
Also I sometimes have trouble seeing all of whats in the color window, (see picture). Is this a known issue?

Damon Caskey- Thank you, I should have figured as much, especially when I'm working with what I believe is the first mod designed to be open to the public. I hope using a newer executable, I'll be able to add colors using alternatepal without any conflicts with the remap commands used by all players and enemies in this game. Radioactive Mary seems to suggest that they can work alongside eachother. (Me figuring out how is another story.)

Wombat2112- Yes. That is one of the few things I can tell you about this with confidence. Comments are useful, not only for giving yourself, or possibly others tips, notes, etc. They are an easy method to disable a line, without deleting it, simply by placing a # at the front of the line. Very useful for troubleshooting. (I currently have about 10 entries commented out about remap, palette, alternatepal)
 

Attachments

  • what.jpg
    what.jpg
    93.4 KB · Views: 7
Me_man I used Adobe Photoshop for all my visual editing like stages, entities and creating palettes, a free alternative is Gimp, I would use Gimp or Photoshop if I were you to create palettes because programs like obeiditor are not stable and not as accurate,

If you look

o9qbxaB.jpg


Each colour represents a part of the sprite
In programs like Photoshop the first colour (dark green) represents transparency

Pink is the eyes, blue is the skin, light green is the mouth, yellow teeth, red tongue, white chest symbol

Here I've changed what those colours represent on the sprite

xRVxLil.jpg


I then save the palette file (.act) and use that as an alternative palette, I'm not sure in obeiditor you can make palettes with such accuracy.

Invest time in a program like Gimp or Photoshop because it'll help with other aspects of sprite work you'll need later and generally will make things much easier for example my palette has 20 colours all distinguishable from each other while your palette in obeiditor has over 200 colours that look quite similar which will make everything harder
 
Me_man A good way to start modding.
Is to tweak existing mod. Adjusting values, check the result.
Trying some new features taken from the docs.
Swapping sprites + edititng hitboxes

This is my contribution to help a Jr. member, just like I used to be.
 
danno - Thank you. I downloaded gimp, and played around with it from, I will have to get more familiar with it.

I figured out how to make gimp draw a pallet from an image file. I couldn't get it to apply them or save them, so I found this thread http://www.chronocrash.com/forum/index.php?topic=60.15 and downloaded Fighter Factory Studio. I was able to very easily get it to  draw a pallet (all 17 colors)  and pull the background to the first spot, and generate pallet (.act) files.
Silhouettes, yet again.
I was trying to use image files with the identical colors, and swap the colors with the same image in different colors. I know this can be done but it's going to be harder because, as D.C. touched on earlier it seems to use a master pallet, when I generated a pallet from one of the actual game files it has 120 some different colors. The pallet generated from the alt1.gif (alternate color) provided in the game is identical.
I have six images of the same frame as stand7 (actually they were gifs with 60some frames, but I took one out of each that match stand7) One is in the same color as Mary appears in the game (main color) the other 5 are really nicely done color changes. I'd really like to get all seven colors into the game.

As I'm typing this I decided to look at the pal.act file in the /data folder and see that it has what looks like the same colors, with the colors on bottom, blanks on top, and the pink background in the bottom right.

?????????????????????????????????????????????????????????????????????????????????????????
 
Not the same pallet. Or an inverted one. The one for the character image has 122 colors, the one in the /data folder has 128.
This message box is taunting me (Font Face, Font Size, CHANGE COLOR)
 
You made a palette using fighter factory? Ok by default the colours are not located in the same position, use Gimp to move the transparency last box bottom right to first box top left, you're probably getting silhouettes because your first colour in your palette is a colour your sprite uses and is not the transparency colour.

I forgot to mention, don't use your transparency colour twice,
Also try to use Gimp to create palettes. Also also once you have a master palette use palapply to apply it to all your sprites, I'll try show you how using the power of my mobile phone, I'll edit this post later

3x also unfortunately mobile internet here is pants,took me 5 minutes to upload a jpeg having 1998 flashbacks over here. Anyway

In palapply

RtKPhRB.jpg


Go to batch, find the input folder with all your sprites, create a separate output folder, find yer master palette and boom convert them.
 
danno - Thank you! Thank you! Thank you!

I can be a little dense sometimes. About 100 tries later, now I can make a palette in about 45 seconds.
So far I've only made them in Fighter Factory, which might be why some of them have a few of the colors shifted around. I can fix that one way or the other though. I can redo them after learning how to use gimp, or worst case, there's only 16 colors, I should be able to fix them by swapping them and comparing them to the original image.
Strange that like you said, it's the last square of the palette for the transparent, but when I open an image that I've applied the palette to loading it's palette along with it, all the colors are at the bottom, besides the pink background color coming first.

Like you said I need to get used to a real editor, gimp seems to have everything I'd ever need plus a whole lot more.
I could probably easily switch the colors back to the proper slots in it, or possibly rip new palettes and see if it doesn't get them all in the same spots. So far, I simply (on my 100th try) had FF generate a palette for each image, and pulled the background color to the last square for all. That's all minor details though. I'm glad to have got it working, all the slots, with different colors, and not surrounded by the backgrounds. Here's a picture, not from in-game yet, but what will be:
Pecs8wO.png


Now I can get back to putting together additional moves.

Thank you very much for your patience and help. It's very much appreciated.
 

Attachments

  • all7w.png
    all7w.png
    14.5 KB · Views: 3
Back
Top Bottom