Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] add map to campaignxonoticbeta.txt

#1
Hello
I wanted to add a map as the first campaign for the single player so I added its .pk3 package to the data folder and put its parameters at the first of campaignxonoticbeta.txt but nothing changed on the single player menu.
So I tried the same thing with an existing map: I put at the beginning "tdm","afterslime","5","2",,"5",,"Team Deathmatch: Afterslime","Next we'll try some 3v3 Team Deathmatch on Afterslime. You'll have to do your best for five minutes, because the team with the highest score will be the winning team!"
but nothing changed as well. I have always on the single player menu: "Deathmatch: Docking Station G-23 ...."
I have also this on the console: WARNING: no tooltip set for g_campaign_skill
VM_fgets: invalid file handle -1 used in menu
maybe it's because of this the changement didn't happen
please help! What can be the problem?
Reply

#2
Changing the maporder with levels that are already there (like you tried) works for me.

Did you extract the file? If yes: Did you put it pack into the pk3 and overwrite the old file?

Or.. maybe you did not save it?
Reply

#3
what file? the new map?.. I can't even change the map order of the existing ones, is there anything to do a part from changing the order in the txt file?
Reply

#4
You can change the map order in the txt file and then you have to save the file and it has to be in the pk3 of course. It should work.
Reply

#5
I've done it but it doesn't work .. I have even deleting the line of the G-23 int the txt and removed the whole G-23 map and it is still the same.
Reply

#6
(07-15-2012, 07:13 PM)Mirio Wrote: You can change the map order in the txt file and then you have to save the file and it has to be in the pk3 of course. It should work.

WRONG! Don't encourage people to alter the original pk3. If they break things, it makes things impossible to troubleshoot! Soukaina, if that's possible for you, revert the data pk3 to its original state. Exctact the file from your Xonotic download. I don't want to run into you later with unexplainable problems caused by a modified pk3 Wink

Leaving the file outside of the pk3 and with the right path overrides the pk3's file. (Read this maybe. I need to write long-winded explanations in the wiki and link to that instead.)

You need to put your modified campaignxonoticbeta.txt in a directory called maps, and put that in your data directory. Your data directory is ~/.xonotic/data/ if you have a *NIX operating system, or something like My Documents\My Saved Games\Xonotic\data in Windows.

Then, in the xonotic console (shift escape in the menu or ingame), type this command:
Code:
which maps/campaignxonoticbeta.txt
If it tells you that file is from the pk3, it means you didn't put the modified file in the right place. If it tells you it's in My Saved Games\blahblahblah, then it means it has loaded the modified file, not the original. You should then see the modified campaign.
Reply

#7
I did not mean to modify it inside anyway, just that the txt has to be at it's origin place again.

If you fuck up your game you can just update it with the updater and you get the old files back anyway (and you should back it up usually).
Reply

#8
Thanks a lot! it finally worked.. I had to change the txt in .xonotic/../maps
Reply

#9
Cool.

Btw: You can to "Multiplayer" -> "Create" and start an offline game with any gamemode, map, botskill etc. you want - much easier.
If you want to play some custom maps you put the from your dlcache (~\Xonotic\data\dlcache) into the data (~Xonotic\data) folder and they will be in the menu. Same for maps which you download from this forum for example.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up [NEED HELP] How to add more bots in multiplayer funbags 0 817 03-30-2023, 10:13 PM
Last Post: funbags
  [NEEDS INFO] How to add fog in Xonotic map bitflow 4 2,612 11-07-2020, 08:40 AM
Last Post: Julius
  [NEED HELP] Change mapinfo to make a CTF map a CTS map. Bhagwa-Yodhak-69 3 2,689 09-08-2020, 06:03 AM
Last Post: _para
  [NEED HELP] Add Bots using Console in Xonotic OpenSourceGames 1 9,143 08-09-2019, 10:16 AM
Last Post: martin-t
  [SOLVED] Can I add my own mp3 as BGM? zwz 3 4,631 07-23-2014, 05:00 AM
Last Post: Ari
  [NEEDS INFO] cant download map, black map area jaybates86 5 7,302 10-08-2013, 06:09 AM
Last Post: Halogene
  [NEEDS INFO] how to add xonotic to ubuntu 11.10 dash ervindy 3 5,536 10-22-2011, 02:27 AM
Last Post: asyyy

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-