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.
Visit our clan website: http://extreme.voltage.nz/
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
  [BUG] wonky user stats (I'm in a game today, by I'm last seen 1 month ago?) snailtrail 6 2,169 09-25-2022, 05:40 AM
Last Post: SpiKe
  [NEED HELP] Menu Won't Load, Game Crashes EdwardHamHam 1 2,477 07-21-2022, 01:44 AM
Last Post: BuddyFriendGuy
Question [NEED HELP] Certain maps crash my game :( flexo 6 2,856 01-17-2022, 08:55 PM
Last Post: flexo
Exclamation [SOLVED] macOS Sierra: -basedir /path/to/game iqxonotic 12 39,984 12-11-2021, 12:46 PM
Last Post: NappyHead
  [NEED HELP] cant start the game/ session lock problem skyghost47 1 1,980 10-24-2020, 11:50 PM
Last Post: BuddyFriendGuy
  [NEED HELP] Sound dissapears mid game mastablasta 0 905 10-01-2020, 12:27 PM
Last Post: mastablasta
  [BUG] The game seems doesn't recognize virtual 7.1 noctiveqc 2 1,727 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,669 01-06-2019, 05:15 AM
Last Post: SpiKe
  [NEED HELP] Custom Game Modes 3agle427 2 2,700 12-29-2018, 07:34 PM
Last Post: 3agle427
  [SOLVED] Game displays [x] joined the [y] team upon connecting Bloodthorn 1 2,225 09-16-2018, 01:44 PM
Last Post: Bloodthorn

Forum Jump:


Users browsing this thread:
1 Guest(s)

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