Giter VIP home page Giter VIP logo

glitch-life's Introduction

Sven Co-op Projects

Click the ⬇️ icons to skip straight to the download page for a project.
Click the respository links for more info and installation instructions.

Tools

These tools should also work with Half-Life, but I don't test for that.

Repository Description
⬇️  ApiGenerator Automatically reverse engineers entity class headers for Sven Co-op.
⬇️  bspguy Modifies maps without having to decompile them.
⬇️  Glitch-Life Randomizes maps.
⬇️  mmlib Utility code, private headers, and build system for metamod plugin devs.
⬇️  resguy Resource file (.res) generator and map packer.

Websites

Repository URL Description
scmapdb https://wootguy.github.io/scmapdb/ Map repacker for SCMapDB.
scmodels https://wootguy.github.io/scmodels/ Helps you find player models.
sctracker https://wootguy.github.io/sctracker/ GameTracker alternative.

Server Plugins

See these Angelscript and Metamod guides for general plugin installation instructions. Most of these plugins have additional instructions to follow.

Repository Plugin Type Description
⬇️  AfkAbuse Angelscript Attach ropes to AFK players and push them around.
⬇️  AntiBlock Angelscript A simple solution to the player blocking problem. +USE players to swap places with them.
⬇️  AntiCheat Metamod Blocks speedhacks and jumpbugs.
⬇️  AntiRush Angelscript Prevents level changes until a certain amount of players reach the end, or until a timer finishes.
⬇️  AntiSpam Angelscript Throttles chat spammers.
⬇️  AntiStall Angelscript Prevents stalling in survival mode.
⬇️  ChatColors Angelscript Lets players choose a color for their name in chat.
⬇️  ChatSounds Angelscript Play sounds by typing special words in chat.
⬇️  Cheats Angelscript Bypasses the player count limitation for cheats, and makes them easier to use.
⬇️  ClassicModeDeluxe Angelscript Enables classic mode support for all maps, monsters, and weapons.
⬇️  emotes Angelscript Adds commands for testing player model animations.
⬇️  Fluids Angelscript Adds body fluid commands.
⬇️  ForceSurvival Angelscript Enables survival support for all maps (toggled by admin commands).
⬇️  ghosts Angelscript Adds visible models for observers in survival mode.
⬇️  LagCompensator Angelscript Fixes laggy monster hitboxes.
⬇️  Lost Angelscript Adds name tags and helps players find each other.
⬇️  MapChangeMsg Metamod Shows a chat message and intermission screen when a level change is triggered.
⬇️  MicFix Angelscript Fixes microphone audio breaking during and after cutscenes.
⬇️  PlayerStatus Angelscript Shows status icons and messages for loading/laggy/AFK players.
⬇️  PortalSpawner Angelscript Creates persistent shortcuts in maps.
⬇️  Radio Metamod Stream audio/video by pasting links in chat.
⬇️  rcbot Metamod Creates AI-controlled players.
⬇️  RockTheVote Angelscript Yet another rtv plugin. Also prevents maps being overplayed.
⬇️  Spectate Angelscript Allows toggling observer mode when survival is off.
⬇️  TextToSpeech Angelscript Reads chat messages aloud.
⬇️  TooManyPolys Angelscript Prevents high-poly player models from tanking framerates.
⬇️  voice_commands Angelscript Adds custom voice commands that function like the "Take Cover!" and "Medic!" alerts.

Map-Specific Scripts/Plugins

Repository Description
⬇️  env_weather Adds snow, rain, and fog volumes.
⬇️  hl_c11_a3_anti_troll Disables restarts caused by the tripmine explosions in this map.
⬇️  sc_doom Map scripts for the Doom II maps.
⬇️  sc_rust Map scripts for the Rust maps.
⬇️  util_ents Utility entities.
⬇️  weapon_custom Custom weapons made easy.
⬇️  display Video streaming plugin for cinema maps.

Last updated 2023/10/18. Added ApiGenerator, mmlib, display, rcbot, sctracker. Removed modelguy.

glitch-life's People

Contributors

incognico avatar wootguy avatar yoplitein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glitch-life's Issues

clients frequently crash when playing through "dark" corruption maps

Only modification I did to *hlsp was "dark".

Clients crash, probably because too many dynamic lights or something.

hl_c02_a1 after the elevator where the sci opens the door for you
hl_c02_a2 after players get teleported to the big elevator

It even happened with ~7 players, maybe it is fine for 1-2 but after some player count it kills the clients.

Program crashes and closes itself when it gets to pizza ya san map

Hi, I've been having this issue since I got the program. For some reason the program just closes itself when it gets to the two pizza_ya_san maps, the thing is that it sometimes work but then goes to crashing again when i want to change the corruptions, i've gone through each option to singularly know what's causing the issue, but its not obvious as it sometimes work but most of the time it doesn't.

All other maps (320 maps) are completely fine no others crash, just pizza_ya_san which is typical as i enjoy playing those 2 maps.

gsrand_yyAVFoEI4u

I can only do them individually as doing all the maps together crash at pizza ya san

Code using undefined/erroneous behaviour

I've begun work on a port to Linux on my fork. Everything seems to work fine, for the most part.

The only issue I've had so far is in model_util.cpp, lines 1613, 1701, and 1707 (in the unported source):

ent_models.erase(it--);

After being yelled at by my compiler, and doing a little research, I've discovered that decrementing forward iterators is simply not allowed.

I have no idea what this is supposed to do. Googling only turns up cases where people have used this for reverse iteration, but that doesn't seem to be the case here. What would you suggest as a workaround?

Update for 5.15

When selecting non default content only some default content slips in as the lists are probably outdated fpr 5.15

No way to disable random exploding func_breakables with entity randomization enabled

Could there be a setting/config option just to disable this while keeping everything else? I love the insanity of the wacky doors and elevators etc. but it's a bit annoying when a ventilation grate for instance (mandatory to break to progress) explodes with enough force to instantly kill me, or when I'm crowbarring boxes for loot and some of them explode, etc. I feel like it should be it's own setting especially considering we can tweak stuff like player and enemy damage, etc.

Sound replacement crash

butts[pushsnd-1] = true;

bad bounds checking there or something. Thanks to DarrenV for reporting.

Edit: More possible buffer overruns:

Severity    Code    Description    Project    File    Line    Suppression State
Warning    C6385    Reading invalid data from 'monsters':  the readable size is '116' bytes, but '-4' bytes may be read.    gsrand    D:\CODE\GLITCH-LIFE\SRC\SOUND_UTIL.CPP    456    
Warning    C6385    Reading invalid data from 'mdirs':  the readable size is '1160' bytes, but '-40' bytes may be read.    gsrand    D:\CODE\GLITCH-LIFE\SRC\SOUND_UTIL.CPP    459    
Warning    C6385    Reading invalid data from 'msize':  the readable size is '116' bytes, but '-4' bytes may be read.    gsrand    D:\CODE\GLITCH-LIFE\SRC\SOUND_UTIL.CPP    463    
Warning    C6385    Reading invalid data from 'mlists':  the readable size is '232' bytes, but '-8' bytes may be read.    gsrand    D:\CODE\GLITCH-LIFE\SRC\SOUND_UTIL.CPP    466    
Warning    C6386    Buffer overrun while writing to 'monsters':  the writable size is '116' bytes, but '-4' bytes might be written.    gsrand    D:\CODE\GLITCH-LIFE\SRC\SOUND_UTIL.CPP    480    

Possible issues and questions.

Hi woot! :)

I recently started getting back into GL to play with some friends, and I noticed a few things while generating maps. Sven 5.14

  1. Bug:

The first issue is "FATAL ERROR (shutting down): Host_Error: Backwards mins/maxs in entity at X-1279.00 Y464.00 Z-1034.00: 9999.00/-9999.00", with the same error on a few other maps. The one quoted is from "<aug20_hl_c05_a3> that I have generated.

Digging into the ripent that entity is the following:

{
"origin" "-1279 464 -1034"
"rendercolor" "0 0 0"
"sequence" "37"
"angles" "0 269 0"
"body" "1"
"pose" "2"
"is_player_ally" ""
"displayname" "sat_globe scientist_dead"
"classname" "monster_scientist_dead"
}

I'm unable to find more information about this error. It could be that the model is clipping through a brush(?), or missing hullsize "0 0 0"; based on a quick glance at the map.

  1. Question/Bug??

Another thing is that some configurations within the gsrand_config isn't being followed. Mostly scale and flip. With the config set (shown below) and used to generate another set of maps, scale isn't as noticeable, but map flipping is still being ignored.

My config is:

corruption_mode  = random
corruptions      = weird shift grey bw contrast invert

If you would like to see the maps for yourself, here are two files zipped for you. [Zip Removed]

Segmentation fault on Linux when sound randomisation is used

As soon as I change 5) Sound Mode to anything other than "Do not change" I get a segfault of gsrand after starting.

Found 1 of 1 maps

Finding content...
Segmentation fault (core dumped)

It crashes almost instantly after "Finding content...".
All other corruptions work fine but sound crashes.

I've tried different versions of llvm to complile gsrand, no difference.
Somehow I have problems running it in lldb, gdb says the following:
0x00007ffff72241da in strlen () from /lib/x86_64-linux-gnu/libc.so.6

CC @Yoplitein

Building fails on Linux

srcds@heusenstamm:~/sc5/svencoop_addon/glsrc/Glitch-Life/build$ make
[ 10%] Building CXX object CMakeFiles/gsrand.dir/src/bsp_util.cpp.o
In file included from /home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/gsrand.h:13:0,
                 from /home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/bsp_util.cpp:3:
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/modelList.h: In function ‘void parse_model_lists()’:
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/modelList.h:66:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if (comments != string::npos)
                 ^
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/modelList.h:76:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if (begin_header != string::npos)
                     ^
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/modelList.h:79:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if (end_header != string::npos)
                    ^
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/modelList.h:91:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       if (ampersand != string::npos)
                     ^
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/bsp_util.cpp: In function ‘void corrupt_map_textures(BSP*, Entity**)’:
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/bsp_util.cpp:747:35: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if (offset + sizeof(BSPMIPTEX) > lump_len)
                                   ^
/home/srcds/sc5/svencoop_addon/glsrc/Glitch-Life/src/bsp_util.cpp:768:63: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if (t->nOffsets[0] == 0 || t->nOffsets[0] + offset + szAll > lump_len)
                                                               ^
cc1plus: all warnings being treated as errors
CMakeFiles/gsrand.dir/build.make:54: recipe for target 'CMakeFiles/gsrand.dir/src/bsp_util.cpp.o' failed
make[2]: *** [CMakeFiles/gsrand.dir/src/bsp_util.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/gsrand.dir/all' failed
make[1]: *** [CMakeFiles/gsrand.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

CC @Yoplitein

Am I missing something or does the code need an update?

"monsters only" sound mode corrupting everything

I changed the sound settings to "world only" so I still have the music because i like it, but it corrupted the music. So I changed it to "monsters only" yet when I went on the map again after the new corruption, everything was changed sound wise even though i set it to "monsters only"

I've used the "monsters only" for the sounds and it seems its not just pizza_ya_san but all maps it doesn't work on, everything has changed like i set it to "super random"

Texture extraction crash

Hi,

I've tried the glitch-life program today and the program has been crashed during texture extraction from the following maps:

ALIENSEXFIEND.bsp, alien_outpost.bsp, alluahackbar.bsp, alluahackbar2.bsp
ally.bsp, annihilation.bsp, aomdc_1afterforest.bsp, aomdc_1afterforest_fix.bsp
aomdc_1angforest.bsp, aomdc_1backalley.bsp, aomdc_1carforest.bsp, aomdc_1city.bsp
aomdc_1city2.bsp, aomdc_1cityx.bsp, aomdc_1darkalley.bsp, aomdc_1end.bsp
aomdc_1forest2.bsp, aomdc_1forest3.bsp, aomdc_1forhouse.bsp, aomdc_1garage.bsp
aomdc_1heaven1.bsp, aomdc_1heaven2.bsp, aomdc_1hospital.bsp, aomdc_1hospital2.bsp
aomdc_1hospital_fix.bsp, aomdc_1intro.bsp, aomdc_1nightmare.bsp, aomdc_1ridingcar.bsp
aomdc_1sewer.bsp, aomdc_1training.bsp, aomdc_2afterforest_fix.bsp,, aomdc_2angforest.bsp
aomdc_2arforest.bsp, aomdc_2backalley.bsp, aomdc_2city2.bsp, aomdc_2city3.bsp
aomdc_2darkalley.bsp, aomdc_2end.bsp, aomdc_2forest2.bsp, aomdc_2forest3.bsp
aomdc_2forhouse.bsp, aomdc_2garage.bsp, aomdc_2heaven1.bsp, aomdc_2heaven2.bsp
aomdc_2hospital.bsp, aomdc_2hospital2.bsp, aomdc_2intro.bsp, aomdc_2nightmare.bsp
aomdc_2sewer.bsp, aomdc_2sick.bsp, aomdc_2sick2.bsp, aomdc_2sorgarden.bsp
aomdc_2sorgarden2.bsp, aomdc_2training.bsp, aomdc_3afterforest_fix.bsp,, aomdc_3angforest.bsp
aomdc_3arforest.bsp, aomdc_3backalley.bsp, aomdc_3city2.bsp, aomdc_3city3.bsp
aomdc_3city4.bsp, aomdc_3cityz.bsp, aomdc_3darkalley.bsp, aomdc_3end.bsp
aomdc_3forest2.bsp, aomdc_3forest3.bsp, aomdc_3forhouse.bsp, aomdc_3garage.bsp
aomdc_3heaven1.bsp, aomdc_3heaven2.bsp, aomdc_3hospital.bsp, aomdc_3hospital2.bsp
aomdc_3intro.bsp, aomdc_3nightmare.bsp, aomdc_3sewer.bsp, aomdc_3sick.bsp
aomdc_3sick2.bsp, aomdc_3sorgarden.bsp, aomdc_3sorgarden2.bsp, aomdc_3training.bsp
aomdc_4end.bsp, aomdc_4mother.bsp, aomdc_lobby.bsp, AoM_hub.bsp
arcad2_v1.bsp, arcade.bsp, arcad_2v1.bsp, arcad_v1.bsp
arctic2_HA.bsp, arctic3_ha.bsp, arctic_ha.bsp, area_zero.bsp

It seems, something is wrong with maps - or - there are unconsidered definitions, which which are not have intended during the development...

Map config contents not taken over

Map config contents are not taken over if gsrand is run from svencoop_addon and the input map is in ../svencoop/maps

createCFG() and probably createSKL() are affected.

*hlsp maps for example only have the newline followed by ## GSRAND BEGIN...

Cheats dont work

I try to enable the cheats in the config but when i try to enable the cheats they dont work

Excluded Sounds issues

Hi,

I hope my question won't sound stupid, but I wanted to know why some sounds are excluded from the randomization process. I ensured to encode them in the correct sound format and they share the same properties than other sounds that have been accepted.

Is there a specific reason and is there a way to fix it?

Thanks by advance for your answers!
SND excluded

Multiplayer map transfer

Hey I have a quick question, I started a P2P server with my buddy, after the randomisation was complete I send him the folder with the content folder, so he didn’t have to download everything, but for some reason he still has to download the map when joining my game. He put the content in het addons folder just like you said.

Doesn't randomize

I followed all the instructions correctly and it didn't randomize at all, I still have the console open too so I have no idea what to do.

Setting 'gmr_only' to '0' has no effect whatsoever

Setting 'gmr_only' to '0' in the config yields no results for me.

The program continues to randomize ent models using *_gmr.gsrand files. Furthermore, removing those files reverts the models and removes the randomization. I assume it means that not only do the files get generated, but "per-entity randomization" doesn't happen either.

Texture xeno_grapple260 is not 16 aligned

L 07/09/2019 - 18:04:59: FATAL ERROR (shutting down): Texture xeno_grapple260 is not 16 aligned
FATAL ERROR (shutting down): Texture xeno_grapple260 is not 16 aligned
Uh oh it seems the server has crashed (╯°□°)╯︵ ┻━┻

pizza_ya_san pizza guy and houndeyes not randomized

it seems the pizza guys can only change to default army grunts and is the same with the houndeyes when they attack the shop owners. never had them change into something else from the number of times it has been fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.