ItsMods

Full Version: Getting variables from external source
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
What @master131 says can't be done from a webserver, only gscs can be loaded from a game server