Commit Graph
3777 Commits
Author SHA1 Message Date
aurhat ef165773b8 This commit fixes removing sleeps in "resetsleep" function.
To test this bug make, for example, 3 long-standing sleeps, add checking of number of sleeps before and after existing "loopv(sleep)",
and later  type "/resetsleeps" command in AC - result: 3 sleeps "before" and 1 remains "after".

Explanation by stef: after deleting elements from vectors there are no holes,
so if there were sleeps[0], sleeps[1] and sleeps[2], then after removing sleeps[0] there left
sleeps[0] and sleeps[1], so during next loop cycle this sleeps[0] is neglected (because i=1).

Commit just changes loopv to loopvrev (loop from end to begin).
2014-02-15 10:55:07 +01:00
RandumKiwi 9197de052f Fix BASH vs KSH conflicts, by forcing user to use BASH. 2014-02-06 09:04:27 +13:00
RandumKiwi 79cce1ef6f Update packaging script to take advantage of GIT 2014-02-06 08:56:37 +13:00
RonaldReagan 8558db7508 Merge pull request #27 from ac-stef/pit
Fixing map header, adding tagclips. yay!
2014-01-30 17:32:35 -08:00
Ronald Reagan c64d1e855b Console history save fixes 2014-01-30 17:21:35 -08:00
ac-stef e69a94cdd8 loop optimizations
also cut some overshooting lines
2014-01-31 00:53:12 +01:00
ac-stef d258b7c186 less annoying visualisation for tagclips
- press B to get the former filled volume view
- raise the value of tagnumfull to get both views simultaneously
- cubescript parameters should be cleaned up before release
2014-01-30 19:38:41 +01:00
ac-stef a8d2ab1c65 transformclipentities improved
The function will now also take care of obsolete clip entities, which
gives the mapper the opportunity to tag clip areas manually and then
have the envelopped (and therefore obsolete) clip entities removed.

When done, the map will be cleaned of "clip & plclip" tags, since clip
already includes the properties of plclip.
2014-01-29 13:03:37 +01:00
ac-stef 7f12ef4131 command to automatically convert all suitable clip entities into tag clips
also: fix sparklies in heightfields
2014-01-29 00:03:50 +01:00
ac-stef 3add3a4876 fix: clip all types of players
i hardly believe, anyone can throw a flag in a tagged area, but who knows...
2014-01-28 17:21:07 +01:00
ac-stef 0ff8fafb5f limit particle emission to 50 fps 2014-01-28 16:01:21 +01:00
ac-stef 6f5635917f visualisation for tagclips
To keep things cheap, only tagged areas inside the editing grid are shown.
I added two variables, tagnum and taglife, to allow playing with the
parameters of the sparklies. Those should be removed later. The default
values work quite well on my really crappy onboard graphics card. Higher
values start dropping fps.

Also, the edit status line now shows the tag value of the cube pointed at.

The patch also fixes the bug, that the edit status line did not show
details about the selection, unless there was at least one entity in the
map.
2014-01-28 14:28:43 +01:00
ac-stef 3865affb0b additional way of clipping areas: tagclips
In addition to the existing clip- and plclip-entities, this patch provides
a new approach to provide the same: clip areas by tagging cubes.
Each cube of a map has a parameter "tag". All tags in all existing ac maps
are currently zero. It is a leftover from cube 1. This patch uses the tag value
to determine, if a cube (from floor to ceiling) should be forbidden for
players (tag 0x80) or every moving object (tag 0x40). Tagclips have several
advantages over classic clip entities: they are fast to establish (mark
area, then /edittag 0x80) and are "cheap" for the engine. Tagclips do not
increase the number of entities. As tagclips are always floor to ceiling,
they can't be used to build stairs or platforms. Tagclips should be
preferred over clip entities, but can coexist without problems.

Technically, setting the tag value to 0x40 or 0x80 causes the physics
engine to handle the cube like a "solid".
2014-01-28 01:12:52 +01:00
ac-stef c3d4713904 clean up map header handling
Older versions of ac did not obey the map header field "headersize".
When a map was written, only the "version" field was updated, even if
the new written header had a different size. Thanks to bigger headers
in map versions 7 & 8 (and now smaller headers again in 9), the headersize
of basically all official maps is bogus. This fix makes sure, only proper
headersizes are written. It also makes the game tolerate different (bigger)
headers - and keeps their content untouched. Future map format extensions
can use this to add header information without breaking existing map parsers.

This patch establishes a new map format 10, which is identical to format 9,
with the exception that the headersize field is guaranteed to be correct.
Format 10 also allows any amount of additional header data.

This patch also cleans up the transformation routines for old map entities.
2014-01-27 23:01:23 +01:00
ac-stef 6e4b23734f fix clang warnings 2014-01-27 23:01:23 +01:00
ac-stef b63e870539 fix rendering of higher mips at the edges of a map
fixes some assumptions of the engine about the rendering
 of mipmapped solid areas at the edge of the world
(confirm bug with an 8x8 solid in the corner of a /newmap)
2014-01-26 20:44:14 +01:00
ac-stef 9066c36b89 physics fix: clean up invisible cubes
have the physics engine take the same shortcuts as the render engine
2014-01-26 20:36:06 +01:00
ac-stef 0c233458c7 g++ warning fix 2014-01-26 20:22:36 +01:00
Ronald Reagan 4d5503be95 No spectate respawn timer evasion. Closes #20 2014-01-23 12:56:56 -08:00
Ronald Reagan 1caf38e898 Added command line history. New file 'history' used in the config folder 2014-01-23 12:09:05 -08:00
Ronald Reagan 305ef19887 Removing lasttarget 2014-01-23 09:23:40 -08:00
Lucas GAUTHERON 5feb0daae5 rewind command crash fix (Closes #2) 2014-01-18 22:47:29 +01:00
James Harris 5e639fdec2 Fix bug #510 "Wrong CN is displayed ("-1"), when "whois -1" is executed." ty gren
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7688 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-12-27 09:08:29 +00:00
James Harris 6db804ea19 Fix server sorting (official maps option) and grammar/punctuation fixes to securemapcheck
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7687 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-12-26 23:15:06 +00:00
Lucas GAUTHERON 8361e43415 escape special characters in MS requests
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7685 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-12-16 12:50:50 +00:00
Alejandro V. Garcia 4d093af454 revert makefile changes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7674 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-16 11:00:23 +00:00
Lucas GAUTHERON c9273f2b4a libcurl.lib revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7673 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-16 10:46:27 +00:00
Alejandro V. Garcia 7e3b74474c revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7672 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-16 10:45:08 +00:00
Alejandro V. Garcia 37272f1b2f mingw & vc++ compatible curl library, binaries created with vc++ express (testing needed)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7668 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-15 12:51:38 +00:00
RandumKiwi 6709d95dfc minor change to pkg script
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7658 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-10 19:15:02 +00:00
RandumKiwi 86a63fc554 Fix for some buggy libcurl versions (linux).
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7656 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-10 18:54:27 +00:00
aerkefiende e9b7904087 Updated NSIS-script for release of 1.2.0.2
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7651 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-10 16:38:46 +00:00
RandumKiwi 2b455828e2 Ensure packager removes gedit backups. Add reminder about *.sh files.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7649 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-10 00:57:11 +00:00
RandumKiwi 5dc821aeb8 * Update packaging script.
* Stop making pcksources.cfg look like a different file (no change).
 * Update docs.cfg

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7648 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-10 00:19:03 +00:00
RandumKiwi 6188854697 v1202
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7645 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 22:57:02 +00:00
aerkefiende 0819beacdb Fix for command completion, thanks grenadier!
https://sourceforge.net/p/actiongame/bugs/497/#877d

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7642 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 17:16:59 +00:00
Lucas GAUTHERON 994061553e gma no longer known
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7641 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 15:16:40 +00:00
Lucas GAUTHERON f0b6fe3249 clfail fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7640 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 15:14:59 +00:00
Lucas GAUTHERON 573eb286c6 prev MS issue fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7639 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 15:00:48 +00:00
Lucas GAUTHERON ab294c1b2d MS now writes to servers.cfg directly and progress bar is fixed
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7638 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 14:07:51 +00:00
Ronald Reagan ae80a42505 Adding grenadier's HTTP MS fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7637 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-09 02:20:23 +00:00
Ronald Reagan 6f32b34aef Versioning changes for mac.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7636 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-08 06:32:52 +00:00
Ronald Reagan 80f103ecad xcode project update.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7635 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-08 06:06:25 +00:00
Ronald Reagan de65e51bd0 Adding --mastertype switch. Allows switching between UDP and HTTP style masterserver
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7633 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-08 05:53:01 +00:00
Ronald Reagan a5c804fa57 We want our colon.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7632 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-11-08 05:50:32 +00:00
RandumKiwi 955b4d61a1 packaging script update
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7623 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-29 11:20:28 +00:00
RandumKiwi bcbcdd81b3 Fix warning, as per code provided by Lucas
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7615 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-22 19:23:59 +00:00
RandumKiwi 71d081fd16 clang++ is default
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7614 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-22 19:19:27 +00:00
Lucas GAUTHERON a57f87582e game protocol and version bump
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7606 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-12 22:03:40 +00:00
aerkefiende a7bd945e87 Preparing the setup for another release
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7603 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-12 21:48:12 +00:00