Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting variables from external source
#1
Hi there

I bet this isnt possible but i gotta ask... Is it possible to use an external csv file located on a webserver to load in some additional variables in to a game?

The problem is, we have created a custom mod for our league and have build in rules regarding weapens and such, all fine and dandy... Now we wanna check if the player is playing on a the same game account as they have posted when joining the league. Finding the steam id in game is simple and thats working, but is it possible to check this against a list thats maintained on a webserver? Else i will have to make it as a file included in the mod, but there will be a hell of a time updating mods on all the different clan servers everytime a new member is added to the league.

Please help :-)
Kazoa
Reply

#2
Code:
tableLookup(<filename>, <search column num>, <search value>, <return value column num>);

1 : <filename> The table to look up
2 : <search column num> The column number of the stats table to search through
3 : <search value> The value to use when searching the <search column num>
4 : <return value column num> The column number value to return after we find the correct row

[Image: tablelookuptut.jpg]

Note that <search value> can also be a string value.
rankInfoFull = tableLookup("mp/rankTable.csv", 0, 0, 16);

As for the obtaining the file from the webserver, no idea.
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#3
What @master131 says can't be done from a webserver, only gscs can be loaded from a game server
[Image: MaEIQ.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 3,893 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,346 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Dedicated Server External (public) IP Nerus 3 5,595 11-02-2013, 14:16
Last Post: Casper
  [Request] Health and Points on hud source robinvm 7 5,174 10-27-2013, 08:23
Last Post: robinvm
  Help MW3 (External) Console - TeknoMW3? Strazeeh 7 8,159 10-01-2013, 21:54
Last Post: DeHEnergY
  Help MW3 (External) Console - TeknoMW3? Strazeeh 2 4,047 09-30-2013, 19:19
Last Post: surtek
  [Request] MW2 EXTERNAL CONSOLE!!! thomiromi 4 5,168 09-26-2013, 18:02
Last Post: Rendflex
  [Release] [SOURCE] DOOR V2.0 [HARD] Tony. 5 4,999 09-26-2013, 14:01
Last Post: Nekochan
  [source] medic E-losev 6 5,367 07-26-2013, 06:18
Last Post: E-losev
  [source] vAmpIr E-losev 5 4,478 07-25-2013, 16:28
Last Post: Bandarigoda123

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.