Darkvater
ad6b37a423
(svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands
2005-05-03 11:48:55 +00:00
Darkvater
a1e27b1606
(svn r2258) - Fix (regression): game crashes on resizing window. Windows is a bit too aggressive with its _assume(0), and it did not even belong there
2005-05-03 11:14:06 +00:00
Darkvater
4e1fbe54b2
(svn r2250) - Fix (regression): arguments with spaces in them were incorrectly parsed
2005-05-02 17:58:11 +00:00
Darkvater
8f6b3154e5
(svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)).
...
- Fix: getting help for an alias works
- Fix: '|' is an unprintable character, replace it with '\'
2005-05-02 17:05:59 +00:00
Darkvater
d102d0c26d
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
...
- Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
2005-05-02 15:52:19 +00:00
Darkvater
27dbc4ba09
(svn r2230) Oops, revert wrongly committed local console.c. Also add the endian_target.h and endian_host.h to the ignore list
2005-04-24 21:56:46 +00:00
Darkvater
a1143a53f0
(svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The DOS grf file trgi.grf has 6 less sprites than the windows one. This results in some segfaults for certain sprites. Fixed it by added a dummy grf file consisting ofr 6 sprites and loaded when using DOS gfx at the appropiate place.
2005-04-24 21:44:45 +00:00
Darkvater
a494f96cfe
(svn r2092) - Fix: old commands/lines in the console (history) did not show when they used 'special' characters like öä, etc. Diff approved by the code-police.
2005-03-27 17:20:27 +00:00
Darkvater
0b82467cf1
(svn r1987) - Cleanup: remove the last remaining dinosaurs of a dead console
2005-03-10 22:03:55 +00:00
Darkvater
7746c4722b
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
2005-02-22 14:52:20 +00:00
Darkvater
d865c55007
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
...
- Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret
- Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions
- Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes
- Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos.
- Fix: OTTD crash when opening 'add server' editbox
- CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-21 18:59:54 +00:00
tron
73c0f21363
(svn r1883) -Fix: [1109400] Better test if a string actually contains any console command
2005-02-17 17:38:17 +00:00
darkvater
4cc0952736
(svn r1747) - Fix: [network] ottd should compile when networking is disabled.
...
- Change: change strgen project file to get rid of warning.
2005-01-31 00:12:44 +00:00
darkvater
1527ef3db0
(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled when it was out of focus (dominik)
2005-01-30 16:54:39 +00:00
darkvater
dd6a6fa7ec
(svn r1628) -Fix: [1107893] script command; log file pointer was not reset to NULL after logging was closed
2005-01-23 21:42:29 +00:00
tron
44f48ce915
(svn r1610) Remove trailing whitespace (last time ever, i hope)
2005-01-23 13:09:35 +00:00
tron
e5cd6b6193
(svn r1596) Add some more statics
2005-01-22 22:47:58 +00:00
darkvater
a1e94b67d5
(svn r1547) -Feature: windows dedicated (if anyone would run that, but ok), is now functioning correctly. There is no other way but to create a new thread, but that's only MS braindeadness
...
-Fix: [1103113] font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts
-Fix: [1103069] console backspace key with ded server; fixed due to normal console handling
-Fix: [1101963] console in dedicated server; see above
-Fix: dedicated server also writes to log file if active
2005-01-16 18:19:33 +00:00
truelight
24c9e6ff66
(svn r1527) -Add: RCon (Remote Connection). A server can set:
...
'set rcon_pw <password>'
Which enables rcon. A client can now do:
'rcon <password> "<command>"'
The command will be executed on the server. (guru3)
-Fix: 'kick 1' did crash dedicated servers
-Fix: server password is now correctly saved
!!Warning!!: do not give your rcon password to people you do not thrust!
2005-01-15 20:09:16 +00:00
tron
9d1f7e7348
(svn r1507) Remove unreachable code
2005-01-14 19:39:06 +00:00
darkvater
1a450b0b39
(svn r1484) -Fix: [1099197] scrolling through console sometimes crashed the whole game. Also added MarkWholeScreenDirty() to have redrawing of console resize instant (sign_de)
2005-01-11 23:39:21 +00:00
tron
49584082a0
(svn r1451) Fix some of the signed/unsigned comparison warnings
2005-01-09 21:25:44 +00:00
darkvater
b11f7c7817
(svn r1420) -Fix: Console alias, load_game functionality and load fix (sign_de)
2005-01-08 00:48:10 +00:00
darkvater
ce4bff7fa5
(svn r1110) -Fix: Empty console commands were executed and returned error message (sign_de for GeniusDex)
2004-12-15 21:30:20 +00:00
darkvater
c58549d512
(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-15 00:31:08 +00:00
truelight
b6c74c1c20
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
...
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
2004-12-14 20:27:00 +00:00
dominik
a94da5937c
(svn r1083) Fix: the console "script" command saves all output to the textfile, not only printf stuff (sign_de)
2004-12-14 17:06:54 +00:00
dominik
a9972399c5
(svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de)
...
- %! allows to merge alias parameters
- \% allows to use % in alias strings
- "alias" command now overwrites the old alias list entry
2004-12-13 22:13:02 +00:00
dominik
9aeb0e1d30
(svn r1073) - condebugger extended a bit [shows the commandline] (sign_de)
...
- fixed handling of aliases with parameters (sign_de)
2004-12-13 20:45:55 +00:00
truelight
551d0622c5
(svn r1065) -Add: [Console] Alias support. Type 'list_aliases' to show them all (sign_de)
2004-12-13 18:51:08 +00:00
truelight
c0603e4768
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow
...
windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-13 09:01:24 +00:00
truelight
1de8e294d8
(svn r954) -Fix: [Console] Hook fixes (sign_de)
...
-Add: [Console] Auto sort commands and variables (sign_de)
2004-12-05 12:25:25 +00:00
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00
tron
6b9a744b2d
(svn r843) Remove redundant variable assignments and function calls
2004-11-27 21:28:51 +00:00
tron
acbd1801c7
(svn r815) Include strings.h only in the files which need it.
...
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-25 10:47:30 +00:00
darkvater
cd01b3890a
(svn r307) -Fix: Several potential buffer-overflow fixes, and removal of 'magic-numbers' in favour of constants. (Tron)
2004-09-21 21:40:59 +00:00
darkvater
e2c1370d60
(svn r295) -Fix: Rewrite and fix of console stuff, including marking (XXX) of areas that require further investigation (Tron)
...
-Note: booby trapped some suspicous assignments (Tron)
2004-09-19 15:24:45 +00:00
signde
f7cfd47261
(svn r280) -Fix: ^M removement in console.c
2004-09-17 09:51:44 +00:00
signde
7693c58e28
(svn r279) -Feature: [WIN32] Console now allows to paste data from the clipboard [ctrl + v]
2004-09-17 06:06:47 +00:00
truelight
3562d814fb
(svn r249) -Fix: warning fix in console.c/h (Tron)
2004-09-14 16:30:33 +00:00
darkvater
d48ce392b2
(svn r248) -Feature: console script files "exec myscript.file"
...
-Feature: console logging (of debug messages with *developer = 2 and debug_level #) to text-files "script test.txt"
-Feature: server and client are auto-executing "on_server.scr" and "on_client.scr" scripts
2004-09-14 16:10:20 +00:00
signde
263042cdf2
(svn r230) -Feature: IConsoleWarning for warning messages
...
-Feature: added info_cmd command
-Codechange: renamed "varinfo" to "info_var"
-Fix: some const fixes in console.h
-Fix: fixed return value of IConsoleCmdGet
2004-09-13 06:56:30 +00:00
darkvater
01dd0219d3
(svn r229) -Fix: Some more const stuff fixed .(Tron)
...
-Fix: ParseConnectionString() function to parse network connection string: <IP>[:<PORT>][#<PLAY_AS] .
2004-09-12 23:35:01 +00:00
darkvater
54bd5b3c1d
(svn r227) -Fix: Sorry, broke console commands
2004-09-12 22:14:45 +00:00
darkvater
989ed101bc
(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).
2004-09-12 22:03:14 +00:00
darkvater
e295e46e3e
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
...
-CodeLayout: Remove trailing spaces and Windows linebreaks
2004-09-12 21:49:38 +00:00
signde
d6cab2e06d
(svn r221) -Feature: console command and variable hooking
...
-Fix: added another network.c stub
-Consolecommand: "scrollto <tile>" center main view on <tile> [Darkvater]
-Consolecommand: "resettile <tile>" force bulldoze <tile> without any checks (DEBUG only) [Darkvater]
-Fix: resetengines is hooked to be not available in network games
-Codechange: "connect <connectstr>": the connect command now uses a connectionstring like the network-gui
-Fix: Direct Connect editbox can handle up to max ~35 characters [Darkvater]
2004-09-12 20:15:18 +00:00
signde
956bf639ea
(svn r210) -Fix: Console key closes window in front
...
-Fix: Console events were processed in wrong window
-Fix: Console unresponsive when you activated another window
2004-09-12 10:23:35 +00:00
darkvater
d03afadad2
(svn r206) -Fix: [1001540] i lost all wagons. Half-assed fix for lost wagons. But now users can at least fix this problem. Consolecommand: "resetengines"
2004-09-11 19:18:30 +00:00
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
2004-09-10 19:02:27 +00:00