Questions tagged [source-engine]

10 questions
3
votes
2 answers

Escaping double quotes in TF2 scripting

In TF2 scripting, there is a simple command, echo. This simply logs a message to the console. It can be used with or without double quotes. However, I want to be able to log something to the console involving double quotes--say, the string He said,…
Conor O'Brien
  • 987
  • 2
  • 16
  • 40
1
vote
1 answer

gcc-10-ar thinks the invalid "." option is being passed to it

I'm compiling a game using the Source Engine. When I run make, after a while the archiver tool complains about an invalid option ".": /usr/bin/ar: invalid option -- '.' this happens with every archiver I have installed: gcc-10-ar, llvm-10-ar, and…
1
vote
2 answers

Visual Studio Code Not Displaying Invisible Characters/Spaces

I am currently working on writing code for a Source Game Engine map file. I have issues with Visual Studio Code not displaying certain invisible characters. When using notepad++, I can see there are invisible characters in between the lines: But…
AyyItsKoen
  • 11
  • 4
1
vote
1 answer

Displaying console feed from game server on rcon client

I'm writing an RCON client for an Insurgency (Source engine game) dedicated server. I'm using the RCON protocol defined by Valve that is used in all of the games that use the Source engine. I can successfully send commands to the server, and display…
James Box
  • 35
  • 1
  • 9
1
vote
1 answer

python-valve rcon minecraft 'ConnectionRefusedError: [Errno 111] Connection refused'

I am trying to connect to RCON on a minecraft server hosted on my own network using python-valve. My code is as follows(Keep in mind it is only accessible on my network, hence my connection to localhost): import valve.rcon def rconsendCMD(): …
Riley M.
  • 11
  • 3
0
votes
1 answer

How can i Convert a text file to UCS-2 LE, from whatever the default is?

I am looking for a way to convert or save a text file in the UCS-2 LE format; specifically without BOM...i guess. I have zero knowledge what any of that means actually; but i know i need that because of this wiki page on what i am trying to…
Fennecai
  • 109
  • 3
  • 13
0
votes
2 answers

Regex Match string after keyword between brackets

I need to match value after keyword between double quote for example: zoom_sensitivity "2" sensitivity "99" m_rawinput "0" m_righthand "0" also with different spacing: sensitivity"99"m_rawinput"0"zoom_sensitivity"2"m_righthand"0" another…
user3075373
  • 44
  • 1
  • 4
  • 19
0
votes
2 answers

Source engine - movement code: What is "wishspeed"?

I've been looking into the Source Engine lately. More specifically, the strafing/bunnyhopping sort of movement they…
mads232
  • 339
  • 1
  • 5
  • 14
0
votes
0 answers

Unable to open socket, connection timed out

Trying to sent packages from my webhost to a game server, using this code. However it always results in Unable to open socket: Connection timed out (110) ad I can't figure out why it times out. When I try this on my localhost, it works perfectly but…
P. Nick
  • 955
  • 1
  • 12
  • 33
-1
votes
1 answer

Table[1] returning nil when table does exist and has values

local mapSpawnsData = {} local JSONData = file.Read(filePath) -- read file as json text mapSpawnsData = util.JSONToTable(JSONData) -- convert JSON to…
Infideon
  • 11
  • 2