Hi, How can I Use the default Weapons and files to make new weapons with different stats and different sounds but still keep the originals safe. And if I can how would I add them into the game to use.
@Molnija, do you mean you just want to change things like the damage points the current weapons make, and their firing sounds, etc.? For that, you don't need to write code.
To replace the sound with your customized sound, look in your Xonotic data folder, and create a directory called sound, then under it a directory called weapons, and put your own weapon sounds there to replace the original ones. You can find the filenames of the weapon sounds here.
For example, if you want to have your own crylink_fire.ogg sound, put your own file in (assuming you are using Linux with default path settings; if you are using other OS, see here):
~/.xonotic/data/sound/weapons/crylink_fire.ogg
Then run Xonotic. Your file will be used instead of the default sound.
(09-29-2018, 09:58 PM)BuddyFriendGuy Wrote: @Molnija, do you mean you just want to change things like the damage points the current weapons make, and their firing sounds, etc.? For that, you don't need to write code.
To replace the sound with your customized sound, look in your Xonotic data folder, and create a directory called sound, then under it a directory called weapons, and put your own weapon sounds there to replace the original ones. You can find the filenames of the weapon sounds here.
For example, if you want to have your own crylink_fire.ogg sound, put your own file in (assuming you are using Linux with default path settings; if you are using other OS, see here):
~/.xonotic/data/sound/weapons/crylink_fire.ogg
Then run Xonotic. Your file will be used instead of the default sound.
If you want completely new weapons, you will have to copy the QuakeC code of a weapon you want to work from and edit it. Most weapons' source code is located inside qcsrc/common/weapons/weapon directory.
First, you will need to checkout and built a git version of Xonotic.
(10-09-2018, 01:35 PM)Lyberta Wrote: If you want completely new weapons, you will have to copy the QuakeC code of a weapon you want to work from and edit it. Most weapons' source code is located inside qcsrc/common/weapons/weapon directory.
First, you will need to checkout and built a git version of Xonotic.
(10-09-2018, 01:35 PM)Lyberta Wrote: If you want completely new weapons, you will have to copy the QuakeC code of a weapon you want to work from and edit it. Most weapons' source code is located inside qcsrc/common/weapons/weapon directory.
First, you will need to checkout and built a git version of Xonotic.
Okay, Im lost. Can you give me a step by step guide so I don't screw up my installation. >_<
(10-24-2018, 02:41 PM)Lyberta Wrote: Isn't that link a guide?
So I got a copy and stuff. So now what do I need to copy and edit. also im using the one I just cloned (msys64) right? Then I compile it and itll show up in game??
So if you have a git version you can now try to build it. It won't overwrite your downloaded version but will use the same configuration files as a non-git version. Once you have git version running, you can start editing QC files in data/xonotic-data.pk3dir/qcsrc
(10-26-2018, 09:16 AM)Lyberta Wrote: So if you have a git version you can now try to build it. It won't overwrite your downloaded version but will use the same configuration files as a non-git version. Once you have git version running, you can start editing QC files in data/xonotic-data.pk3dir/qcsrc
when I run the ./all run xonotic or similar commands it says darkplaces/darkplaces not found aborting :/
(10-27-2018, 05:07 AM)Lyberta Wrote: Then you don't have enough dependencies to build it. It looks like you need to look at that page again and see how to install them.
ill just erase the whole thing and redo it since it says I already have all of them
(10-27-2018, 05:07 AM)Lyberta Wrote: Then you don't have enough dependencies to build it. It looks like you need to look at that page again and see how to install them.
Nope, Still the same. So IDK it says all the dependencies are there I just cant run the command
(10-28-2018, 08:35 AM)Lyberta Wrote: Can you post the entire output?
LAPTOP-XXXXXXXX MINGW64 ~/xonotic
$ ./all run xonotic
Timing via the time utility works.
Found main repo = git://de.git.xonotic.org/xonotic/
Repository . enabled because it already exists
Repository data/xonotic-data.pk3dir enabled because it already exists
Repository data/xonotic-music.pk3dir enabled because it already exists
Repository data/xonotic-nexcompat.pk3dir disabled by default, create data/xonotic-nexcompat.pk3dir.yes to enable
Repository darkplaces enabled because it already exists
Repository netradiant enabled because it already exists
Repository div0-gittools disabled by default, create div0-gittools.yes to enable
Repository d0_blind_id enabled because it already exists
Repository data/xonotic-maps.pk3dir enabled because it already exists
Repository mediasource disabled by default, create mediasource.yes to enable
Repository gmqcc enabled because it already exists
Repository xonstat disabled by default, create xonstat.yes to enable
Repository xonstatdb disabled by default, create xonstatdb.yes to enable
Repository xonotic.org disabled by default, create xonotic.org.yes to enable
Repository wiki disabled by default, create wiki.yes to enable
Client darkplaces/darkplaces not found, aborting