Questions tagged [crysis]

Lua scripting and extensions for Crysis and other Crytek games

Lua scripting and extensions for Crysis and other Crytek games

13 questions
4
votes
2 answers

Unexpected characters in console output

I am programming a new server-client network for the game Crysis Wars. I have a function that centers a string to the amount of characters supported per-line in the console window. The window fits 113 characters, but I have set the maximum character…
AStopher
  • 4,207
  • 11
  • 50
  • 75
3
votes
2 answers

Messages formatting the wrong way round

I have the following code to send a block of text to a users' game console (Crysis Wars): CMCCPlayer(player, "================================================================================================================"); …
AStopher
  • 4,207
  • 11
  • 50
  • 75
3
votes
1 answer

Reopening closed file: Lua

I have a file called backup.lua, which the program should write to every so often in order to backup its status, in case of a failure. The problem is that the program writes the backup.lua file completely fine first-time round, but any other times…
AStopher
  • 4,207
  • 11
  • 50
  • 75
2
votes
1 answer

Count occurrence of a set of characters and subtract spaces from the string

See the first image below for the problem. You can see that the first line of text correctly aligns, but the second does not. A few months ago I wrote some code that centers the text in a string in order to process it nicely onto a console for a…
AStopher
  • 4,207
  • 11
  • 50
  • 75
2
votes
1 answer

Retrieving strings from Messages

I am making my first public server modification for Crysis Wars and to ensure nobody steals my code, I'm putting as much as possible within the C++ based DLL (the alternative is Lua). To do this I have to put commands in the DLL, some of which…
AStopher
  • 4,207
  • 11
  • 50
  • 75
1
vote
1 answer

GUI Window from CLI

I have a server application that runs on commandline, but am wanting to create a GUI frontend to it, to make it easier for users to interact with the server program. Since I do not have the source code of the actual main application *.exe file, my…
AStopher
  • 4,207
  • 11
  • 50
  • 75
0
votes
1 answer

Obtaining Current Network Rate

I would like to obtain the current network transfer rate of download/upload. This is for a C++ gameserver DLL and the primary objective of this is to best predict the upper-latency limit to kick players from the server, when their latency is too…
AStopher
  • 4,207
  • 11
  • 50
  • 75
0
votes
1 answer

Unresolved External Symbol- Error in guide?

So I've been trying to fix a weird bug in a game engine SDK where the Windows loading cursor is used instead of the game's own cursor. The fix for this is here: http://www.crydev.net/wiki/index.php/Use_Custom_Cursor#Step_1:_Fixing_The_Cursor_Bug. I…
AStopher
  • 4,207
  • 11
  • 50
  • 75
0
votes
1 answer

Process Protection

I program for a PC game called Crysis Wars, and lately players have been constantly asking for a new game update (a community patch) to fix problems, including a rather ironic scripting error. There are several game hacks known as Infinium, Gamg,…
AStopher
  • 4,207
  • 11
  • 50
  • 75
0
votes
1 answer

Restarting Application: Delay

I'm coding a restart feature into my newest Crysis Wars server modification that remotely reboots the server. This is useful if the server has a problem and a simple system reload does not fix it, also is useful to tell the server to restart at a…
AStopher
  • 4,207
  • 11
  • 50
  • 75
-1
votes
2 answers

Table Empty when adding content

I'm having a huge problem when I've added content to a table (Lua), where all content in the table suddenly disappears. The table in question holds the data for a banlist (608 entries at present) and is placed within the table by using…
AStopher
  • 4,207
  • 11
  • 50
  • 75
-2
votes
2 answers

Why can't I use "%20" in a string?

I use a function that I found in this question, adapted to replace all spaces with "%20" (probably could be done far more efficiently!): ## Heading ##std::string Main::SpacesForWeb(std::string text) { for (std::string::iterator it =…
anon
-2
votes
2 answers

Automated Email Sender

I am trying to build an automated email sender that sends ms statistics of a gameserver, and also used for notifying the server administrators about potential cheaters and problems. The server modification is currently a C++ DLL, although at some…
AStopher
  • 4,207
  • 11
  • 50
  • 75