Welcome, Guest. Please login or register.

What openbor you prefer: Double dragon,battletoads or final fight !? by lirexpatrio
[December 07, 2012, 07:15:27 pm]


what are your favorite games OpenBOR?! by lirexpatrio
[December 07, 2012, 07:09:46 pm]


Post Some Awesome Videos by maxman
[December 07, 2012, 05:51:39 pm]


Can @cmd playmusic "aaaa" 1 also increse music sound ? by BeasTie
[December 07, 2012, 05:24:38 pm]


Streets of Rage: Silent Storm by mtrain
[December 07, 2012, 03:45:05 pm]


Site will be down for maintenance on 12/8/2012 thru 12/10/2012 by Damon Caskey
[December 07, 2012, 07:42:42 am]


Cancelled SOR 3d Remake by riccochet
[December 07, 2012, 03:58:33 am]


Dungeon Fighter: B.O.R. by msmalik681
[December 07, 2012, 03:24:27 am]


[TUTORIAL] How to create 4 Games of OpenBOR in 1 CD (650 MB) by magggas
[December 06, 2012, 09:46:25 pm]


custknife by Bloodbane
[December 06, 2012, 09:34:09 pm]


blockfx help by B.Kardi
[December 06, 2012, 04:09:14 pm]


street of age 4 hd by corradlo
[December 06, 2012, 01:41:36 pm]


ClaFan - Classic Fantasy ver 1.17 by soniczxblade
[December 06, 2012, 05:01:20 am]


Bug Archive by Bloodbane
[December 06, 2012, 02:00:44 am]


"Bio-Doom" and "Gears of Doom" by BulletBob
[December 05, 2012, 10:07:21 pm]


Contra Locked 'N' Loaded v2 by Bloodbane
[December 05, 2012, 09:39:43 pm]


Downloadable OpenBoR Manual by BeasTie
[December 05, 2012, 08:31:24 pm]


Having trouble testing changes by B.Kardi
[December 05, 2012, 03:05:53 pm]


DragonBall Absalon by msmalik681
[December 05, 2012, 02:52:13 pm]


[Hi-Res] Swamp by Vibrant
[December 05, 2012, 10:47:14 am]


  • Dot Guests: 217
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: Using a whole spritesheet  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Using a whole spritesheet
« on: July 17, 2012, 01:29:37 am »
Hey everyone I started back up on openbor and I had a question. I used the search function and couldn't find anything on this. I've been cutting sprites one by one but is there a script that allows openbor to read frames off of a sprite sheet so that you don't have to cut them individually?

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Using a whole spritesheet
« Reply #1 on: July 17, 2012, 01:48:06 am »
 I'm afraid there's no such script.
 Moreover, there are different kind of sheet out there. Most of them have IDLE and WALK as the top left sprites but after that it's just totally random. Some has run, jump before attack sprites while some immediately go to attacking ones (either of preference or the character simply can't run and jump).

 Also, you probably won't use all sprites in sheet.
 Worse, most spritesheets have icon & texts pasted by the ripper to show his/her logo (can't imagine how this engine would handle these if it were able to read from spritesheet). Some even include edited sprites and alternate colors.

 You'd ended up editing the sheet but if you have time for that, you have time for cropping sprites too :).
 And we haven't talked about offsetting yet.

 Sorry. Cropping sprite is best way to go.
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

"The more often enemies attack, the more open they are to counter attacks"

Offline rafhot

  • Hero Member
  • *****
  • Posts: 557
  • Raf Smash!
    • my creations
Re: Using a whole spritesheet
« Reply #2 on: July 17, 2012, 02:00:12 am »
i use alfred spritesheet unpacker to cut the sprites automatic for me

http://www.alferdspritesheetunpacker.forkandbeard.co.uk/forkandBeard/apps/AlferdSpritesheetUnpacker/Screenshots.aspx



just drag and select the sprites you want and click and he cut everything

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Re: Using a whole spritesheet
« Reply #3 on: July 17, 2012, 02:01:33 am »
Wow this program cuts a lot of the time for cutting sprites in half. Thanks for the info

Offline NickyP

  • Hero Member
  • *****
  • Posts: 2772
  • You know, that guy with the pet drum?
    • Personal OpenBOR site.
Re: Using a whole spritesheet
« Reply #4 on: July 17, 2012, 02:07:26 am »
The only negative side to Alferd Spritesheet Unpacker is that it won't align the sprites, so you'll have to find the offset/bbox/attackbox for each individual frame. Mind you, that's not really a bad thing either. I mean yeah, it's easier on the coding side of things to just align the sprites yourself. But if you use a character editor like Obeditor or OpenBOR Stats, it's really easy.

EDIT: Now technically, you could just use the entire sheet for that character. If the individual sprites are spaced apart enough (I'd think at least 320x240 between each sprite), you could just use one sheet and have the offsets for where the sprites are on the sheet. But that would probably be more work than it's worth...

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Re: Using a whole spritesheet
« Reply #5 on: July 17, 2012, 02:09:39 am »
Wow I haven't heard of any of these programs. I will check them out now

Offline NickyP

  • Hero Member
  • *****
  • Posts: 2772
  • You know, that guy with the pet drum?
    • Personal OpenBOR site.
Re: Using a whole spritesheet
« Reply #6 on: July 17, 2012, 02:13:01 am »
Wow I haven't heard of any of these programs. I will check them out now

I personally go with Obeditor. It has its finicky parts and half-glitches, but beyond that, it's a dream come true. I don't even want to remember what modding was like for me without it.

I've never used OpenBOR Stats though. But I hear it's also really good. I just prefer obeditor because it's what I've been using for all these years.

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Re: Using a whole spritesheet
« Reply #7 on: July 17, 2012, 02:20:37 am »
Is there a tutorial for obeditor? can't get it to load anything or maybe i'm just looking for the wrong type of file. Also I can't get my game to load. It says "failed to load palette"

this is what its giving me


**************** Done *****************

Failed to load palette from 'data/chars/sailormercury/stance/stance.png' in 'data/chars/SailorMercury/Ami.txt'.load_cached_model #scriptbuf: 485 bytes in 1 allocs
buffer_packfile: 243 bytes in 1 allocs
Total Leaked Bytes 728

Offline NickyP

  • Hero Member
  • *****
  • Posts: 2772
  • You know, that guy with the pet drum?
    • Personal OpenBOR site.
Re: Using a whole spritesheet
« Reply #8 on: July 17, 2012, 02:30:21 am »
1. When you add a project in Obeditor, click on the folder that contains your Data folder, not your actual Data folder. When your project shows up on the list, click Edit Entities or Edit Levels.  ;)

2. You probably need to enable truecolor mode. In your Data folder, create video.txt, and paste this into it:

Code: [Select]
ColourDepth 16bit
That should work...

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Re: Using a whole spritesheet
« Reply #9 on: July 17, 2012, 02:37:58 am »
still bringing up the same error. When I do it in .gif it comes up but it's not transparent. Is there a way to make .gif images transparent?


Edit:
I got it fixed. Instead of having the unpacker cut the sprites as .png I changed it to .gif
« Last Edit: July 17, 2012, 02:56:55 am by daimenj »

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Using a whole spritesheet
« Reply #10 on: July 17, 2012, 02:58:26 am »
 You have to set right color as the 1st color which is the transparent color. Converting to gif is not enough, you have to ensure that the background color is the 1st color in the palette.

 BTW have you read this thread?

http://lavalit.com:8080/index.php/topic,2051.0.html
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

"The more often enemies attack, the more open they are to counter attacks"

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Re: Using a whole spritesheet
« Reply #11 on: July 17, 2012, 03:29:27 am »
I just read it. pretty cool I don't think I can use obeditor because it says I have to have linux for it to work. I'm choosing the folder with the data file in it for my project but it still says no valid models.txt file available.

Edit:
How exactly do you line the sprites up in obeditor? I can't drag the images or anything
« Last Edit: July 17, 2012, 03:50:40 am by daimenj »

Offline BeasTie

  • Hero Member
  • *****
  • Posts: 760
Re: Using a whole spritesheet
« Reply #12 on: July 17, 2012, 03:56:10 am »
@rafhot - thanks for the link I was looking for something like this ages ago, somehow diddn't find this app when I looked.

@ NickyP - Obstats is much better once you get used to it.

@damienj - there's a windows and linux version in the archive for obeditor, as well as the source code.  Make sure you are using the windows version.  - obeditor-win.tar.gz

Offline daimenj

  • Jr. Member
  • **
  • Posts: 9
Re: Using a whole spritesheet
« Reply #13 on: July 17, 2012, 11:28:22 am »
Got it. But I still can't get a smooth animation. The frames won't align. I even set the boxes to be the same and but the animation is still choppy

Offline Die_In_Fire

  • Hero Member
  • *****
  • Posts: 1140
  • Where eagles dare!
Re: Using a whole spritesheet
« Reply #14 on: July 17, 2012, 03:10:19 pm »
I also uses Obeditor,but just to place offsets and boxes, and set animations. Can't save using it because corrupt the files having scripts command.

cannot understand Oborstats yet...  :dunce:

@damienj maybe that means that you have problems with the offsets. Try correcting them and then try playing with delay command

 



 0%




SimplePortal 2.3.3 © 2008-2010, SimplePortal