Commit Graph
1283 Commits
Author SHA1 Message Date
ac-stef 7948212234 add radio buttons and simplify sliders
- omit step size for sliders with value descriptions
- optionally auto-determine max value by list length

  menuitemslider text min max value display action wrap
  menuitemradio text min max value display action

    text: menu item text
    min: min value
    max: max value (or optionally -1 and set by display string length)
    value: initial value
    display: list of value descriptions or value step size
    action: executed on value changes (new value in arg1)
    wrap: if 1, wrap slider around (radio buttons always wrap)

DOCREF menuitemslider menuitemradio
2017-06-06 13:17:20 +02:00
ac-stef 1bf36ca2b3 option to turn off flag score hud transparency
flagscorehudtransparency 0|1

    default: 1

DOCREF flagscorehudtransparency
2017-06-05 01:06:35 +02:00
ac-stef 5e20a2343b add animated inlined images for console text
Images are stored in packages/misc/igraph/*.png and loaded during game
start. Filenames consist of the image shorthand (mnemonic) and optional
frame times, separated by "_". Keep in mind, media file names may only
contain letters, digits and "_-.()".

All texts displayed in the game console are scanned for mnemonics prefixed
with ":". All found matches are replaced by the image.

The images are displayed as squares with width and height the same as the
regular font height. To create animations, put several square images side
by side into the file. For example, a 128x32 image is interpreted as four
frames. Frame duration is encoded in the filename, so, for example the file
"nop_1000_200_100.png" shows the first frame for 1000 milliseconds, the
second frame for 200 msec and the third (as the rest) for 100 msec.

Igraphs "1" to "9" are hardcoded and can be manually encoded in menu texts.
Use the new escape code "\i" plus the number of the image: "\i\1".."\i\9".
Other images can be used in menus as well, but the codes have to be fetched
by getigraph.

new commands:

  updateigraphs

    Checks for new files in packages/misc/igraph. Only necessary, if new
    files are added during the game - for example, by mod package download.

  getigraph <mnemonic>

    Returns an encoded string to display an image outside the console, or
    an empty string, if the mnemonic was not found.

new parameters:

  igraphsize 80..300 (default 120)

    scales the images (in percent)

  igraphsizehardcoded 80..160 (default 106)

    scales the hardcoded images "1".."9" (in percent)

  igraphanimate 0..1 (default 1)

    if 0, only the first frame of every image is displayed

  igraphdefaultframetime 5..2000 (default 200)

    used for images with multiple frames but no frame duration specified
    in the filename

  hideigraphs 0..1 (default 0)

    if 1, no new images will be shown in the console

DOCREF updateigraphs getigraph igraphsizehardcoded
DOCREF igraphsize igraphanimate igraphdefaultframetime hideigraphs
2017-05-28 23:29:06 +02:00
ac-stef 6bafdb0037 allow particle type names in md2emit and md3emit
md[2|3]emit <tag name> <particle type> <attrib1> <attrib2>

  particle type may now be numeric 0..19 or one of SPARK, SMOKE, ECLOSEST,
  BLOOD, DEMOTRACK, FIREBALL, SHOTLINE, BULLETHOLE, BLOODSTAIN, SCORCH,
  HUDMUZZLEFLASH, MUZZLEFLASH, ELIGHT, ESPAWN, EAMMO, EPICKUP, EMODEL,
  ECARROT, ELADDER, EFLAG

also: cleanup

DOCREF md2emit md3emit
2017-05-16 17:50:00 +02:00
ac-stef deafcaab00 add batch map conversion stage to find stray entities
find entities in the middle of 8x8 solid cubes

removed a few ents from depot and venison
2017-05-06 19:37:36 +02:00
ac-stef 5eec79d792 add batch map conversion stage to find some unnecessary heightfields
In old versions of AC it was necessary to trick with heightfields to raise
a pickup entity. However, for quite some time now, pickups can be raised
by attribute.

This additional stage for convmap finds pickup entities where the
heightfield is most probably unnecessary. Fixing is manual work, though.

Updated those pickups on 16 maps.

Also fixed a playerstart on desert3
2017-05-06 00:52:31 +02:00
ac-stef 64c146e52d texture fixes on dev_arabian
thx BrutalSystem
2017-04-30 22:57:07 +02:00
ac-stef 8fdbee225e texture fixes
thx BrutalSystem
2017-04-24 00:14:44 +02:00
aurhat 4d2d326136 Cleanup 2017-02-18 22:40:07 +01:00
ac-stef 206cbdcbd1 better AR approximation
and some fixes
2016-12-03 14:54:18 +01:00
aurhat 55142cbe41 Add transparent 32x32 icon to AC window
It bases on .../docs/images/icon.png from AC website repository,
just removed empty space, edges changed to more noticeable.
Note: on Mac an icon from assaultcube.icns is used.
2016-11-19 18:19:45 +01:00
ac-stef ecb3386f88 fix some entities 2016-11-05 20:45:09 +01:00
ac-stef 5177988bac show faulty playerstarts as yellow players 2016-11-03 14:20:34 +01:00
aurhat 507394fde9 Improve existing and add some new mapmodel definitions 2016-10-22 00:12:48 +02:00
ac-stef 111c8d4d5c mapmodel cleanup 2016-10-17 17:40:02 +02:00
aurhat 72dfcd73fe Cleanup
"showminremain" enabled by default, "fovcompat" removed.

DOCREF showminremain fovcompat
2016-10-14 21:49:53 +02:00
ac-stef bb8bfeb752 mute error messages while probing default model skins
Unless otherwise specified in a config file, every model (md2 or md3)
tries to load skin.jpg, skin.png, ../skin.jpg and ../skin.png (in that
order). This commit silences the errors if some of those attempts fail.

There is still an error message, if none of the four files can be found.

The commit also deletes five identical skin.jpg and places one in ../
2016-10-11 21:36:49 +02:00
ac-stef ade460517d reuse skin 2016-10-10 22:18:26 +02:00
ac-stef f7a54907db map fixes
thx BrutalSystem
2016-10-09 00:49:06 +02:00
ac-stef bc57ac2360 map fixes
thx BrutalSystem
2016-10-08 00:28:33 +02:00
ac-stef 245c0f4c56 map fixes 2016-10-04 22:05:17 +02:00
ac-stef d56d8f91b6 fix restricting watercolour
get coal down from 213 to 91 clipped entities
2016-09-28 16:22:11 +02:00
ac-stef 5ba5d1b4b3 optionally show media origin in slot lists 2016-09-26 22:45:34 +02:00
ac-stef 18375a7c18 sort shadow entities behind lights
- restrict watercolour to edit mode
- some map fixes
- add dev_coal
2016-09-25 16:07:06 +02:00
ac-stef 815f4aa764 add selectall command
selectall

  selects the whole map (minus the two cubes wide border)

DOCREF selectall
2016-09-16 14:06:26 +02:00
ac-stef c5904dc065 add stairs to edit menu 2016-09-16 14:06:26 +02:00
ac-stef 643328b5a1 properly compress chars_default.png
thx BrutalSystem
2016-09-13 21:28:47 +02:00
ac-stef a976e5b4ba map fix 2016-09-11 11:17:25 +02:00
ac-stef 588e9f9de8 some fixes for OSX 2016-09-08 22:36:46 +02:00
ac-stef 123e2b2b12 cleanup 2016-09-08 01:20:45 +02:00
ac-stef 40e8b1cf5e some map fixes 2016-09-05 20:42:56 +02:00
ac-stef ac4e2e60b4 optimised dev_dusk
* heightfield render errors fixed
* model-clipping simplified
* shadowyaw changed a little to avoid ugly artifacts
2016-09-04 00:52:20 +02:00
ac-stef 3e7a0cfb10 added dev_dusk
"Dusk by A&D_Shadow"

initial commit, based on ac_dusk_2013, converted to map format 10
2016-09-03 14:35:33 +02:00
ac-stef 8f95b6d88e more map fixes 2016-09-03 01:42:34 +02:00
ac-stef a8db184eef use mapmrproper to optimise for filesize
needs further testing...

all dev_ maps have been optimised
2016-09-02 00:05:57 +02:00
ac-stef 3e1628792f fix lighting on desert3
thx BrutalSystem
2016-08-31 23:08:49 +02:00
ac-stef 300d702619 add menu to set notexture
Allows to reset notexture, to set a high-contrast color to find and
fix the areas and to set to a useful default texture.

As useful textures, in addition to rock.jpg and concrete.jpg, the menu
lists the default wall, floor and ceiling textures of the current map,
and also the last watched texture from the texture menu.

Also adds a few checks to detect unconverted map config files and misuse
of the new bright highlight textures.
2016-08-30 22:57:03 +02:00
ac-stef 98605751f4 fix unconfigured textures on official maps
replaced by makke/rock.jpg, which is the base for the "missing content"
texture - so, only the text is missing...

on outpost, notexture was reset (since there's no use for it on official
maps)
2016-08-30 21:08:38 +02:00
ac-stef 778ad62629 fix rendering of some heightfield borders on lainio 2016-08-29 21:52:03 +02:00
ac-stef 4f6e58040b merge identical config slots of official maps
textures:
  cavern: 1 slot merged
  complex: 3 slots merged
  depot: 11 slots merged
  lainio: 1 slot merged
  mines: 1 slots merged
  swamp: 1 slot merged

mapmodels:
  swamp: 2 slots merged
  toxic: 3 slots merged
2016-08-29 15:47:46 +02:00
ac-stef 69518c5e50 sort config slots of official maps 2016-08-29 15:47:46 +02:00
ac-stef 91e7ff6e7f delete unconfigured mapmodel entities from official maps 2016-08-29 15:47:46 +02:00
ac-stef 28d63baeee sort entities on official maps 2016-08-29 15:47:46 +02:00
aurhat 2d55d5dc2a Cleanup new_content map
Fixed paths to models, adjusted map message, map saved
in format 10.
2016-08-27 20:23:38 +02:00
ac-stef 9230561697 remove illegal chars from map config files
from now on, the server's going to be very pedantic about this...
2016-08-26 14:28:53 +02:00
ac-stef 71c65c90ca fix lighting error on edifice
16x16 mip doesn't render properly - had to break it up

thx BrutalSystem
2016-08-24 19:13:16 +02:00
Alejandro V. Garciaandaurhat c1252941ba Add missing mapmodel
Supplement to ace4d2b
2016-08-22 23:04:35 +02:00
ac-stef 8b9bdfa3e4 fix texlists in edited official maps
copied, cleaned and sorted the texlists from ac_* to dev_* maps
(to fix nonsense lists, created by incomplete texture slot delete code)
2016-08-20 14:49:51 +02:00
ac-stef d48675911f fix too thin walls on several maps
one more too thin wall, on ac_shine at pos (87|163) can't be fixed
without visual changes

thx Robtics
2016-08-18 17:29:04 +02:00
ac-stef 9f284ac746 fix rendering error on ac_outpost 2016-08-16 23:09:15 +02:00