CGS - Forums

Duke Nukem Boards => Duke 3D Resources => Topic started by: Sanek on 09 June 2014, 01:14:57

Title: Adding new sprites
Post by: Sanek on 09 June 2014, 01:14:57
Can someone explain me how to add new sprites to the game? I was try to add one, but I get it as a texture instead! :(
Title: Re: Adding new sprites
Post by: Forge on 09 June 2014, 01:33:45
you mean new art?
Title: Re: Adding new sprites
Post by: Sanek on 09 June 2014, 09:02:34
Quote from: Forge on  09 June 2014, 01:33:45
you mean new art?
Yes.
Title: Re: Adding new sprites
Post by: Micky C on 09 June 2014, 14:18:54
What do you mean you get it as a texture? Without code tiles are just tiles, or do you mean the transparency isn't working? If you're talking about 8 bit art, I'd use tilefromtexture, where transparency is represented by the alpha channel.
Title: Re: Adding new sprites
Post by: Sanek on 09 June 2014, 15:52:27
I guess that shot explain it all.
Title: Re: Adding new sprites
Post by: Forge on 09 June 2014, 15:57:26
transparency. see Micky's post
Title: Re: Adding new sprites
Post by: Sanek on 09 June 2014, 23:35:19
Where I can download tilefromtexture tool? Link at duke4 is broken.
Title: Re: Adding new sprites
Post by: Forge on 10 June 2014, 00:00:36
i thought it was def code

read the eduke wiki
Title: Re: Adding new sprites
Post by: Gingis Khan on 01 July 2014, 22:51:45
DukeRes and BastART are good but they have some problem with transparency. But i have an DukeRes fixed version. If you are in interes i could send you  ;)
Title: Re: Adding new sprites
Post by: MrScienshit on 13 July 2014, 16:48:10
Hi, cant find a more appropriate thread so Ill ask it here.
How do I properly replace a sprite?
I tried to replace the pistol sprite from tiles009.art but when I load it in duke it gets crazy.
Title: Re: Adding new sprites
Post by: Forge on 17 July 2014, 15:03:53
check out some of the gun mods at RTCM and see how they did it.
Title: Re: Adding new sprites
Post by: MrScienshit on 20 July 2014, 16:29:40
okay, I checked them out, and used them. I still dont know whats wrong.
My process
1. There is an art file that contains a dual pistol weapon, but also a chaingun replacement, but I do not want the new chaingun. So
2. I open the normal unmodified tiles009.ART of duke using Dukeres.
3. open the modified art file that contains that dual pistol.
4. Set the dukeres to tiled view so I can see both art files.
5. Copy pasted the dual pistol to unmodified art.
6. saved as single art file.
I used both the dukeres and the hacked one. It all came from duke rtcm. When I load the art it looks like this.
Title: Re: Adding new sprites
Post by: Forge on 21 July 2014, 01:18:56
sorry. i don't know enough about art files to provide real help. i was hoping one of the example weapon replacement art mods would hold your answer.

just to check, you verified that the original dual pistol worked before you tried to import your art into it?
Title: Re: Adding new sprites
Post by: Gingis Khan on 21 July 2014, 12:11:47
If someone have problem with transparent color in 8-bit mode, i suggest to go in Paint and name new color for background which have this coordinates:

red  252
gren 0
blue 252
hue  200
Sat  240
Lum  119

Also if someone use DukeRes only COPY option works and IMPORT do not work :( Also be careful DukeRes can mess up your graphics for some reason. I reccomend to use BastART to import 8-bit BMP files that have coordinates for background color i gived here.
Title: Re: Adding new sprites
Post by: MrScienshit on 22 July 2014, 12:41:36
@ Forge
no I imported the art from the dual pistol to the original art.

@Gingis Khan
Thanks, so thats why it gets messed up. Im going to learn how to use bastart now