Henry Wilson
aa7ca7fe64
Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
6 years ago
Henry Wilson
a690936ed7
Codechange: Replace SmallVector::Length() with std::vector::size()
6 years ago
Patric Stout
e3c639a09f
Remove: ENABLE_NETWORK switch
...
This switch has been a pain for years. Often disabling broke
compilation, as no developer compiles OpenTTD without, neither do
any of our official binaries.
Additionaly, it has grown so hugely in our codebase, that it
clearly shows that the current solution was a poor one. 350+
instances of "#ifdef ENABLE_NETWORK" were in the code, of which
only ~30 in the networking code itself. The rest were all around
the code to do the right thing, from GUI to NewGRF.
A more proper solution would be to stub all the functions, and
make sure the rest of the code can simply assume network is
available. This was also partially done, and most variables were
correct if networking was disabled. Despite that, often the #ifdefs
were still used.
With the recent removal of DOS, there is also no platform anymore
which we support where networking isn't working out-of-the-box.
All in all, it is time to remove the ENABLE_NETWORK switch. No
replacement is planned, but if you feel we really need this option,
we welcome any Pull Request which implements this in a way that
doesn't crawl through the code like this diff shows we used to.
6 years ago
glx
8e7fe3973f
Add: CompanyCtrlAction enum for CMD_COMPANY_CTRL actions
6 years ago
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
6 years ago
Niels Martin Hansen
2a868b9f3b
Feature: Framerate display window ( #6822 )
...
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
6 years ago
adf88
56ffa35511
(svn r27914) -Fix/Feature: 'unban' console command - fix invalid help text and be more verbose
7 years ago
adf88
f3fbf6beb8
(svn r27913) -Fix: 'unban' console command was not handling IPv6 adresses properly
7 years ago
alberth
0adfb1ac6f
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
8 years ago
alberth
6f201ce4a8
(svn r27651) -Codechange: Introduce methods for setting the name and title of _file_to_saveload.
8 years ago
alberth
597380e099
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
8 years ago
alberth
df9a9f074a
(svn r27649) -Codechange: Introduce detailed file type enum, rebuild FiosType with it.
8 years ago
alberth
75ad6d0100
(svn r27647) -Codechange: Introduce file operations, and use it to replace most of SaveLoadDialogMode
8 years ago
alberth
5969685954
(svn r27645) -Add: Give console commands their own file list storage.
8 years ago
alberth
d6cd3b1605
(svn r27644) -Codechange: Split GetFiosItem into BuildFileList and FindItem, and move both to FileList.
8 years ago
alberth
caf3379746
(svn r27642) -Codechange: FiosGet* file query functions take a destination file list.
8 years ago
alberth
bc08fe7c5f
(svn r27641) -Codechange: Fold the _fios_items file list vector into its own class.
8 years ago
alberth
2fa0fdb176
(svn r27638) -Codechange: Move FiosType enum, move and rename SetFiosType function.
8 years ago
alberth
a52864ef27
(svn r27633) -Codechange: Extract _saveload_mode use from BuildFileList
8 years ago
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
zuu
a31b46ba84
(svn r26000) -Add: Optional filter parameter to the 'content state' console command, to limit the content list to only content where the name match the filter
11 years ago
zuu
9088972738
(svn r25999) -Add: When calling the 'content select' console command without args, display all selected content
11 years ago
rubidium
13855f0a09
(svn r25705) -Fix: a number of typos (inspired by 90c920601c84975acb694f3673e2beb08b013753)
11 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
frosch
870eab53d2
(svn r24807) -Add [FS#2820]: Enable usage of 'companies' console command also in singleplayer.
12 years ago
frosch
4aa17c5109
(svn r24722) -Add: Display unique ID and md5sum in console content info.
12 years ago
rubidium
d8d2f74559
(svn r23741) -Revert (r23740): the few parts that the Windows / non-network compiles stumble on
13 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
rubidium
98fdf81320
(svn r23680) -Fix [FS#4915]: prevent removal of the (AI) company the local player is in
13 years ago
truebrain
726ce254ff
(svn r23647) -Add: add rescan_game as console command (patch by Xaroth)
13 years ago
truebrain
963802e9a7
(svn r23612) -Add: allow importing libraries in the same way as AI does, only with GS prefix (and in game/library)
13 years ago
truebrain
c99950c215
(svn r23606) -Add: GameScanner, to auto-detect game scripts, and wire it in the console
13 years ago
truebrain
b4f832f29f
(svn r23605) -Add: GAME_DIR and CONTENT_TYPE_GAME, and read gamescript from that directory
13 years ago
rubidium
b231e80125
(svn r23470) -Codechange: move declaration of SwitchToMode to a header instead of declaring it in 6 other files
13 years ago
truebrain
cc12942d70
(svn r23384) -Remove: no longer allow a binary to be without AI support; the parts some compilers failed at, are integrated in other parts of the code now too
13 years ago
truebrain
34d7f01ccc
(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig
13 years ago
rubidium
e97b747f5d
(svn r23230) -Codechange: stupid casing for UnPause. It's a single word, not two words "CamelCased" after eachother
13 years ago
rubidium
4ae8bbea07
(svn r23222) -Codechange: reduce tar scanning calls to the bare minimum
13 years ago
rubidium
6d991b3b10
(svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories
13 years ago
rubidium
de27205e6c
(svn r23031) -Fix [FS#4804]: for the admin "bots" there was no distinction between bankruptcy and manual removal of companies even though the API suggested that
13 years ago
rubidium
f5dd74499b
(svn r22829) -Codechange: unify the dirtying of windows after an AI scan
13 years ago
rubidium
6d51883a87
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
13 years ago
rubidium
327c5dd10c
(svn r22771) -Codechange: unify some NewGRFScan calling code
13 years ago
frosch
6bb33acc0d
(svn r22738) -Fix [FS#4722] (r21854): Setting company passwords via the GUI on servers (including starting a company with the default password) failed, so no client could join.
13 years ago
frosch
1688470eb9
(svn r22617) -Codechange: Add GameOptionsInvalidationData enum for data values for Window::OnInvalidateData() of windows with class WC_GAME_OPTIONS.
13 years ago
alberth
f1cae9960f
(svn r22512) -Add: Save heightmap.
14 years ago
rubidium
3c86fddf4e
(svn r22414) -Fix [FS#4606]: kicking thyself via remote console crashes the server
14 years ago
rubidium
caf02450fb
(svn r22365) -Codechange: add overload of NetworkServerKickOrBanIP using the ClientID, which later resolves the IP address to ban. This to consolidate the knowledge about resolving IP addresses
14 years ago
rubidium
bc9a803ea9
(svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> NetworkClientInfo::GetByClientID
14 years ago
planetmaker
2f226fb725
(svn r22322) -Fix [FS#4593]: Obey the law of conservation of parantheses in the console help
14 years ago
planetmaker
914f8e9f1d
(svn r22080) -Doc: Add doxygen comments to a few functions and improve a few existing comments
14 years ago
rubidium
1dc5ba2210
(svn r22063) -Change: make the "has network" check also check whether the client is actually fully connected
14 years ago
frosch
915e339d0f
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
rubidium
3f9fa65a42
(svn r21855) -Feature [FS#4368]: [Network] Console command to change the password of other companies for servers (dihedral)
14 years ago
rubidium
795a528328
(svn r21854) -Codechange: refactor the password setting methods to make it possible to change the password of other companies (on the server)
14 years ago
smatz
0ab078158e
(svn r21804) -Remove [FS#4409]: the 'stopall' console command, as its functionality was broken. Group start/stop commands can be used instead
14 years ago
yexo
8e3e93b96f
(svn r21703) -Feature [FS#4372]: list_ai_libs console command to get a list of recognized AI libraries (dihedral)
14 years ago
rubidium
37b9c31118
(svn r21702) -Fix: make sure the colour argument of echoc is properly validated to be a text colour
14 years ago
rubidium
b25cf57542
(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way and remove some unneeded casts
14 years ago
smatz
8b6a8a8935
(svn r21692) -Cleanup: remove unused extern declaration of HashCurrentCompanyPassword(), make it static
14 years ago
rubidium
924a924907
(svn r21250) -Fix [FS#3952]: Rescanning AIs didn't "forget" removed AIs
14 years ago
rubidium
ed04bef953
(svn r21248) -Codechange: don't run the tar scanner twice upon startup
14 years ago
rubidium
c7f0518f16
(svn r21246) -Fix: upon rescanning AIs the new AIs would (after some time) show up in the AI list but you could not select all
14 years ago
rubidium
c311f18ba4
(svn r21050) -Fix (r20515): ignore underscores as well for help messages
14 years ago
rubidium
ad12a91cda
(svn r20974) -Add: remote console (rcon) for remote admins (dihedral)
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
69fa0b36d3
(svn r20542) -Codechange: generalise the setting of "p2" to the ClientID.
14 years ago
rubidium
d98ff7c4c4
(svn r20515) -Feature: ignore _ in console command names so there is no "inconsistent" behaviour w.r.t. underscores anymore without breaking backwards compatability greatly
14 years ago
frosch
31bebd3ad5
(svn r20512) -Fix [FS#4036]: Generation seed is unsigned.
14 years ago
michi_cc
71ff3c4bb4
(svn r20508) -Add [FS#3973]: A new screenshot type that makes a zoomed-in screenshot of the visible viewport. (Eddi)
14 years ago
yexo
e2d706cd21
(svn r20344) -Feature: add rescan_newgrf console command
14 years ago
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
rubidium
6f7086b4b3
(svn r20157) -Fix [FS#3950]: make it *very* clear that saveconfig doesn't save the configuration of a running savegame to openttd.cfg, but the one that would be used for new games
14 years ago
alberth
212dbbf4d8
(svn r20022) -Doc: Add some doxygen comments.
14 years ago
alberth
ef17c6042f
(svn r20021) -Codechange: Move variable declarations.
14 years ago
alberth
5fb3e557d4
(svn r20020) -Codechange: _script_file is used in only one function.
14 years ago
frosch
13d43b8dab
(svn r19937) -Codechange: Move some fios related prototypes to fios.h
15 years ago
rubidium
75856967a0
(svn r19885) -Fix [FS#3761]: allow loading savegames from the console without specifying the ".sav" extension, i.e. make it consistent with saving savegames from the console
15 years ago
smatz
80fd67a314
(svn r19818) -Fix [FS#3784](r16004): kicking clients by IP didn't work
15 years ago
rubidium
4868fb988f
(svn r19722) -Fix: crash when using restart via rcon.
15 years ago
frosch
03249ebcfb
(svn r19515) -Add: Client setting 'gui.newgrf_developer_tools' to enable otherwise hidden features.
...
-Add: Console command 'reload_newgrfs'; only available when newgrf developer tools are enabled.
15 years ago
frosch
9a00f6961f
(svn r19514) -Codechange: Allow console hooks to deny existance of commands.
15 years ago
smatz
23041d9720
(svn r19509) -Codechange: remove superfluous semicolons after function definitions
15 years ago
peter1138
3c40fe42d4
(svn r19374) -Change: Update documentation for console command connect to use ip:port#company parameter format, in line with command line help.
15 years ago
smatz
8cd83f87df
(svn r19085) -Codechange: simplify hooking of console commands
15 years ago
smatz
023fc16894
(svn r19083) -Cleanup: remove support for modifying variables from console
15 years ago
smatz
d8a0278cf2
(svn r19082) -Codechange: make 'developer' a regular setting
15 years ago
rubidium
21bd2722cd
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
15 years ago
smatz
ac6ff0de9b
(svn r19079) -Codechange: use _debug_console_level instead of _stdlib_con_developer
15 years ago
smatz
91988f2722
(svn r19077) -Codechange: remove company_pw from console vars
15 years ago
smatz
73ed81b1c7
(svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword()
15 years ago
smatz
b91b3ac836
(svn r19074) -Change: when filtering list of settings and console commands, use strstr() instead of strncmp()
15 years ago
matthijs
108b86282f
(svn r18979) -Fix: Typo in console save command output.
15 years ago
yexo
fae34ee719
(svn r18944) -Change [FS#3232]: use the highest version of an AI that can load the AI data from a savegame instead of the exact same version
15 years ago
yexo
d75b9f1642
(svn r18943) -Feature [FS#2885]: make it possible to change newgame settings from within a game via the console (use setting_newgame instead of setting)
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
a8d6d18b22
(svn r18608) -Change: add the concept of music sets
15 years ago
rubidium
a6146f5f51
(svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested.
15 years ago
rubidium
510f8a9122
(svn r18469) -Fix (r17139): possible invalid reads when listing content on the console
15 years ago
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
15 years ago
smatz
4eaa558ca1
(svn r18155) -Codechange: in MakeScreenshotName(), don't return pointer to local static variable - use global one instead
15 years ago
rubidium
64ecceadda
(svn r18053) -Codechange: remove the manual pause/unpause limitation with min_active_clients
15 years ago
smatz
d87c032e52
(svn r17941) -Fix: close BMP file when making screenshot fails
15 years ago
smatz
090c762921
(svn r17938) -Feature: non-automatic screenshot name can be entered in console
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
e9624fe0cc
(svn r17682) -Codechange: remove erroneous space before some commas
15 years ago
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
673df8c5c7
(svn r17466) -Feature: reconnect console command (based on patch of bilbo)
15 years ago
yexo
f548a1b3b3
(svn r17298) -Fix [FS#3153]: reloading an AI started a new AI in the first available company slot causing other AIs to be started
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
ba4fd897b8
(svn r17097) -Fix [FS#3092] (r13256): make restart command work again and make the help show how it works and how it doesn't work
15 years ago
rubidium
113f5b402d
(svn r16773) -Fix (r16014): forgot to remove obsoleted aliases
15 years ago
smatz
22cf8d8480
(svn r16634) -Codechange: use Company::IsHumanID() instead of IsHumanCompany()
16 years ago
smatz
55225433c4
(svn r16432) -Feature(tte): use 'scrollto x y' in console to scroll to tile with given coordinates
16 years ago
rubidium
36e71c8df6
(svn r16420) -Fix [FS#2919]: don't allow content download via the console when there's no zlib as it's done for the GUI already
16 years ago
smatz
10d1ef5447
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
rubidium
9f4d64bda0
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
16 years ago
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
f5316c5cbd
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
...
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
16 years ago
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
yexo
52b95bdc96
(svn r16176) -Fix: forbid joining AI companies via the 'move' and 'join' console commands.
16 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
0068629432
(svn r16096) -Fix [FS#2849]: connect tried to validate too much of the company ID with too little information on hand
16 years ago
rubidium
c9ebf14ba5
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
16 years ago
rubidium
89d0eca6b7
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
16 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
smatz
f3ed8268b6
(svn r15628) -Fix [FS#2705]: kicking/banning a client from the Client list window crashed the server
16 years ago
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
16 years ago
rubidium
3e1664aff1
(svn r15514) -Fix: make the join/spectate command require to be connected to a network game; in SP it could lead to crashes.
16 years ago
rubidium
dcb3a9ac51
(svn r15411) -Feature(ttette): make 'set' a alias for the setting/patch console command
16 years ago
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
truebrain
ba397634fd
(svn r15253) -Fix (r15193): dutch people shouldn't write english :p
16 years ago
rubidium
04709f2798
(svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral)
16 years ago
rubidium
f2777cd02d
(svn r15200) -Feature: give server admins a tool to combat profanity in nick names (based on patch by dihedral)
16 years ago
rubidium
c8a7135d6c
(svn r15193) -Feature: content server/bananas access via the console
16 years ago
rubidium
5f3772a42c
(svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again.
16 years ago
truebrain
a483ddf7ae
(svn r15083) -Add [NoAI]: added a console command to reload an AI (requested by Zuu)
16 years ago
truebrain
405239758e
(svn r15058) -Fix [NoAI]: when using start_ai in console, start the next configured one, not a random (Yexo)
16 years ago
peter1138
f0e6eeb57d
(svn r15051) -Fix: Only allow creation or deletion of an AI when in a game.
16 years ago
truebrain
2462e8dc9d
(svn r15043) -Fix: just try to change the AI, and see if that succeeded, instead of hoping you understand the internals of a change AI routine (to avoid possible mistakes in the future)
16 years ago
truebrain
a3dd7506d3
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
peter1138
680175fea0
(svn r14862) -Fix (r14421): min_players became min_active_clients, not min_clients
16 years ago