Duke4.net Forums: A few questions about replacing textures and CON editing - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

A few questions about replacing textures and CON editing  "Help me, please."

#1

Hi,

This is my first post here.


Here's what i want to do:


1. Change the number of ammo in the weapon the player spawns with, from 48 to any number, really.

I tried changing the number in the GAME.CON file but nothing happened.

And why the number 48? How can i change it?


2. I want to replace ALL textures form the PLATOON TC with textures form NAM.

What is the best way to do this?

Replace the textures one by one in the NAM.GRP using an ART editor, or using the DEF Language for EDUKE32, basically this, from wiki.eduke32:

tilefromtexture

tilefromtexture <tilenum> { ... }

Used to generate an 8-bit tile from an image file. Use the alpha channel for transparency instead of the pink color.

file <filename>
name <filename>

alphacut <value>

In addition to working when you are adding an image file as an art tile, the following parameters can also be used without specifying a file to modify the attributes of an existing ART tile.

xoffset <value>
xoff <value>

yoffset <value>
yoff <value>

texhitscan
nofullbright


3. How to convert (if needed) the extracted textures from NAM to PLATOON palette (or vice versa, etc.) I use Build ART Files Editor v2.0, here: Click


That's all the question i have for now.
0

User is offline   Trooper Dan 

  • Duke Plus Developer

#2

View PostGordon Freeman, on 24 August 2019 - 09:57 AM, said:

1. Change the number of ammo in the weapon the player spawns with, from 48 to any number, really.

I tried changing the number in the GAME.CON file but nothing happened.

And why the number 48? How can i change it?


I'll only answer CON questions because that's easier (I can just paste in code snippets to show you).

in GAME.CON, try adding this:

appendevent EVENT_RESETPLAYER

  setp[].ammo_amount PISTOL_WEAPON 30
endevent


Just change the 30 to whatever number. The number is 48 by default because Duke's pistol clips hold 12, and 4 clips is a good starting amount.
0

#3

View PostTrooper Dan, on 24 August 2019 - 04:42 PM, said:

I'll only answer CON questions because that's easier (I can just paste in code snippets to show you).

in GAME.CON, try adding this:

appendevent EVENT_RESETPLAYER

  setp[].ammo_amount PISTOL_WEAPON 30
endevent


Just change the 30 to whatever number. The number is 48 by default because Duke's pistol clips hold 12, and 4 clips is a good starting amount.


Thank you so much! It worked perfectly!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Fury! ;) © 2019 Voidpoint, LLC

Enter your sign in name and password


Sign in options