Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] reload map changes in game

#1
I'm making maps in Netradiant and whenever I compile the map I start xonotic and do "chmap mapname" which works fine but then if I make changes to a map in Netradiant and compile it again and then do "chmap mapname" the changes are not in the map and I have to restart xonotic to see the changes. can I somehow reread the user data directory to get those changes while in game without having to restart?
You're already dead.
This is hell.
Reply

#2
That I'd also like to know. But you can just append a number to the compiled map and do "chmap mapname1". So you don't have to restart.
Reply

#3
Generally a clean restart is the best way to go about it, but you can also refresh the renderer with
Code:
r_restart

Then you need only restart the match to play the new changes.
[Image: 230.png]
Reply

#4
r_restart works even on the loaded map!

I was told to try fs_rescan at first, but it is sort of broken and only loads new assets reliably.
Reply

#5
I'm working around this by first loading another map and then loading my own map again. You can do this very quickly by assigning hotkeys for it. I'm using one hotkey for Xoylent (map xoylent) and a second hotkey for my own map.
This loads much faster than using r_restart, because it doesn't reload all resources, but loads the updated map file.
Reply

#6
load a map: map mapname
reload changes: fs_rescan ; r_restart

PD: some map entities and items are not refreshed. Neither do the skybox textures.



-
[Image: 62416.jpg]
Reply

#7
I have this in my autoexec.cfg configuration file, in case it would help someone:





Code:
// -----------------------------------------------------------------------------
// MAP DEVELOPMENT:
// -----------------------------------------------------------------------------

// Screenshots Format:
"scr_screenshot_jpeg" "0"               // [1] Use JPG instead of TGA
"scr_screenshot_jpeg_quality" "0.98"    // [0.9] Compression level
"scr_screenshot_png" "1"                // [0] Use PNG instead of TGA

// Clean HUD for screenshots (F12):
alias nohud_1 "viewsize 120; r_drawviewmodel 0; crosshair 0; cl_hidewaypoints 1; shownetgraph 0; showfps 1; showtime 0; showdate 1"
alias nohud_0 "viewsize 100; r_drawviewmodel 1; crosshair 16; cl_hidewaypoints 0; shownetgraph 1; showfps 1; showtime 1; showdate 1"
alias nohud "nohud_${r_drawviewmodel}"
bind z "nohud"

// Spectator's cam speed (mousewheel resets to default 1.5):
bind x "toggle sv_spectator_speed_multiplier 0.50 0.25; impulse 11"

// Draw everything | lightmaps only | lightmaps + normalmaps shading:
bind c "toggle gl_lightmaps 0 1 2"

// Show statistics & tris:
"r_speeds_graph" "0"                    // [0] Do not show it by default
"r_speeds_graph_x" "8"
"r_speeds_graph_y" "8"

bind v "toggle r_speeds_graph 0 1; toggle r_showtris 0 1"


That is:

set PNG format for screenshots.

z key: enable/disable some hud elements prior to taking map screenshots.

x key: slow spectator's cam speed. Good to fly around geometry to observe details.

c key: a toggler to show everything, lightmaps only or lightmaps + normalmaps applied.

v key: draw map statistics.


-
[Image: 62416.jpg]
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
Question [NEED HELP] Certain maps crash my game :( flexo 4 1,786 12-07-2020, 09:25 AM
Last Post: Ecthelion
  [NEED HELP] cant start the game/ session lock problem skyghost47 1 1,140 10-24-2020, 11:50 PM
Last Post: BuddyFriendGuy
  [NEED HELP] Sound dissapears mid game mastablasta 0 520 10-01-2020, 12:27 PM
Last Post: mastablasta
Exclamation [SOLVED] macOS Sierra: -basedir /path/to/game iqxonotic 11 35,153 09-09-2020, 02:04 PM
Last Post: dixius99
  [BUG] The game seems doesn't recognize virtual 7.1 noctiveqc 2 1,200 02-17-2019, 02:10 AM
Last Post: martin-t
Exclamation [BUG] *ubuntu 18.04/nVidia v415-Desktop Screen Corruption After Exiting Game? JeZxLee 1 2,032 01-06-2019, 05:15 AM
Last Post: SpiKe
  [NEED HELP] Custom Game Modes 3agle427 2 2,057 12-29-2018, 07:34 PM
Last Post: 3agle427
  [SOLVED] Game displays [x] joined the [y] team upon connecting Bloodthorn 1 1,701 09-16-2018, 01:44 PM
Last Post: Bloodthorn
  [SOLVED] Cannot run game anymore after new git update Bloodthorn 2 1,636 07-25-2018, 07:20 AM
Last Post: Bloodthorn
  [NEEDS INFO] Game Crash On Load Castor 0 1,414 05-31-2018, 09:06 AM
Last Post: Castor

Forum Jump:


Users browsing this thread:
1 Guest(s)

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