Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] Does Xon have some "on load" hook?

#1
Hi, I'm currently working on some more advanced console coding stuff and I have ran into an issue. I currently do all my coding in autoexec.cfg, which works as expected when using simple stuff (defining variables and aliases that will be used later). However, when I try to run the aliases that I had defined just a couple lines before, it freaks out and breaks some stuff:

Code:
menu: program is not loaded
menu: program is not loaded

These lines are repeated for each alias call. But when I rerun the script (or later exec a different cfg file) manually, there is no issue. It also gave me grief for using variables which I had not yet defined using the set command (even though their values should have been set using RPN), but I fixed that.

This brings me to a possible solution - hijack some hook (the only one that currently comes to mind is cl_hook_gamestart_all) and let the code run from there. Which does work for the majority of my code, but for some things it is too late. Are there any hooks or aliases that are called after xon is loaded, before joining any game, that I could repurpose?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Grappling hook speed MaN_In_A_HaT 1 2,111 03-18-2022, 05:58 PM
Last Post: LegendGuard
  How does Xonotic stretch to all my screens on Linux? Espionage724 1 3,801 10-18-2015, 12:04 AM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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