1. Post #1

    September 2010
    23 Posts
    Hi everyone !

    This addon is quite old but I'm working on it again, The new version will be out soon and is gmod13 compatible. Have a look on the github, you may download a working version there. (Maybe the gamemode is still broken but the addon part should work fine)

    Original version here : http://www.facepunch.com/showthread.php?t=721509 , all credits for idea, and original release goes to danharibo .
    Were are just updating it and adding content.




    This Mod lets you create your own colony of headcrabs and Antlions! :3. Simply spawn a Headcrab or Antlion egg (Or If you're a lazy spawn a Headcrab or Antlion) from the Entites tab, and you'll have your own colony. Of course, don't forget to feed them or you'll have a load of corpses lying around - and you don't want that now do you.

    Melon and meat are food. Meat disapear after a certain time. Melon become tree, and these tree are spawning melon.
    The aim is to have a strong colony to fight one other colony (if you are 2 player or more), or just to have fun with npc.
    Genetic is incoming to make this addon way better :D ! (2.0 or 2.1)

    Note : You have a weapon to control your npc :). (WIP)

    It's recommanded to use AI noded map (gm_construct is fine).

    Here is some (HD) video :
    - a small video (V1.9.4b) :
    http://www.youtube.com/watch?v=aIwYz2agxpk
    - a how to use video (V1.9.4f) :
    http://www.youtube.com/watch?v=a-5lxtEbdU4




    - The Surfer (working on entities and entities related thing)
    - Wamilou (since 1.9.3 working on gamemode part)



    - Steam group : http://steamcommunity.com/groups/realistic-colonies




    [release]Next version is 2.0[/release]

    What is done ?
    Code:
    - Adding growing effect of npc.
    - Fixed headcrab having different Hp depanding of their model.
    - Removed pink color of young npc.
    
    - Fixed plant related timer wich was not according to delay between each execution.
    - Fixed an Antlion death message showed as an Headcrab death message.
    - Fixed Antlion and headcrab being able to eat more than 1 food at once.
    - Fixed the colision bug with tree.
    - Changed part of code that was quite useless.
    
    - Changed death message.
    - Changed how much leg are layed at once.
    - Tree are growing faster.
    - Increased max melon.
    - Reduced health on spawn.
    - Reduced max headcrab.
    
    - Added random thing to egg time so the whole colonie does not lay egg at once.
    - Added health regeneration overtime.
    - They can now eat while they are not too hungry. (still imposible if <40)
    
    - Removed Heal granted by eating.
    -> Download link <-
    Direct
    Workshop : http://steamcommunity.com/sharedfile.../?id=139477348
    Multi upload soon.

    Non Direct
    We have a github here : https://github.com/wamilou/Realistic-Colonies/


    -> General and Useful ConVars <-
    Code:
        * rc_printevents - When set to 0 it won't print "Headcrab X died".
        * rc_spreadthelove - When set to 1 they won't attack anymore.
        * rc_remove - When set to 1 all realistic colonies are cleaning themself.
        If set to 0 play with the addons ;D
    -> Optimisation managing (1.9.4b or higher) <-
    Code:
        * rc_time X - timer in second for living stuff
        * rc_planttime X - timer in second for tree and melon stuff
    -> Healing food (1.9.4c or higher and < 2.0 ) <-
    Code:
        * rc_antlion_healing (recommended 0.25 to 3 default  1) Change healing.
        * rc_headcrab_healing (recommended 0.25 to 3 default  1)  Change healing.
    -> Gui radius (1.9.4d or higher) <-
    Code:
        * rc_view (recommended 256 to 2048 default 768) a biggest radius allow you to see R-colonies thing farther
    -> Game content (1.9.5 or higher) <-
    Code:
        * rc_speed (recommended 0.5 to 2 default 1) if you want to increase / decrease the speed of this addons
        * rc_gamemode (0 or 1 default  0) if you want to test the gamemode thing (be aware it's just a test)



    [release]
    Code:
        V 2.0 pre release 2 :
        - melon are not colony killer :) anymore.
        - information writen over npc head are now related to their scale.
        - fixed weapon to controll npc.
        - fixed an other bug with weapon.
        - reworked the weapon a bit.
        - the resize bug is kinda fixed, since it is smoother.
        - commented the old thing so it does not any error anymore.
    
    
        V2.0 pre release
        - Adding growing effect of npc.
        - Fixed headcrab having different hp related to their model.
        - Removed pink color of young npc.
    
        - Fixed plant related timer wich was not according to delay between each execution.
        - Fixed an Antlion death message showed as an Headcrab death message.
        - Fixed Antlion and headcrab being able to eat more than 1 food at once.
        - Fixed the colision bug with tree.
        - Changed part of code that was quite useless.
    
        - Changed death message. (they  are now short)
        - Changed how much leg are layed at once.
        - Tree are growing faster.
        - Increased max melon.
        - Reduced health on spawn.
        - Reduced max headcrab.
    
        - Added random thing to egg time so the whole colonie does not lay egg at once.
        - Added health regeneration overtime.
        - They can now eat while they are not too hungry. (still imposible if <40)
    
        - Removed Heal granted by eating.
    
        V1.9.5
        --General :
        - addons work better and lag less
        - all convar use rc not co anymore.
         
        --internal change :
        -Rc_api as more stuff than before
        -self.lion and self.crab now become self.npc allowing us to add more stuff easier
         
        --stuff added :
        -rc_speed (alow you to change speed of game age and hunger and other stuff)
        Added new age engine so it's compatible with rc_speed
        -Food searching stuff :
        fully working and bug less search food system
        all search radius is now in only 1 value : rc_searchrad
        - changed some convar so the game is better
        - full zombie stuff that work
        - Realistic colonies control gun
        - Realistic colonies gamemode (rc_gamemode 1 to enable it)
        - trying to add some thing so prop protection work better (seems to failed or prop protection not working as it should)
         
        --Bug fixed :
        -does not show negate hp like 'health : -52' showing 'health : dead'
        -all plant bug fixed
        -all egg bug fixed
         
         
        V1.9.4f
        - Changed all Convar & Entities name.
        - New render stuff.
        - All knowed bug fixed.
        - Changed some Convar so that headcrab can't lay egg without eating.
         
        V1.9.4e
        - optimized hunger stuff.
        - fixed a bug :P.
         
        V1.9.4d
        - Reworked Search food system:
             - Once again less laggy !
             - And even better than before !
        - Added the first Client side Convar "rc_view" to change max distance view of RC thing
         
        V1.9.4c
        - Improved Gui : You can now check your npc health !
        - New food search system. Npc do never stuck themself and the new code is really less laggy (take less calcul)
        - New food thing : When Rc npcs eats thing they earn health.
        - New related conVar :
        * rc_antlion_healing (recommended 0.25 to 3 basicly at 1) Biggest this number is the more antlion will get health when eating
        * rc_headcrab_healing (recommended 0.25 to 3 basicly at 1) Biggest this number is the more headcrab will get health when eating
         
        V1.9.4b
        - fixed a wrong value about headcrab mature time.
        - No more zombie spawned in headcrab group.
        - Added max hunger can be changed with :
        * rc_headcrab_mhunger X - Too set up when headcrab they die of hunger basicly at 100.
        * rc_antlion_mhunger X - Too set up when antlion they die of hunger basicly at 125.
        - AI they will kill each other if too hungry  NOW BASED OF CURRENT >MAXHUNGER< (hunger limit).
        - LAG MANAGING THING
        * rc_time X - time in second beetween execute again all 'living thing' (recommanded 0.5 to 3 basicly at 1 (a big number reduce calcul))
        * rc_planttime X - time in second beetween execute again all 'food thing' (recommanded 1 to 5basicly at 2 (a big number reduce calcul)
         
        V1.9.4
        - Bug free
        - AI they will kill each other if too hungry (now apply to antlion)
        - MAIN LAG FIXED (does not lag anymore !).
         
        V1.9.3c
        - GUI the position of the name changed (different pos for different NPC).
        - changed some name and added a secret one (related to big news).
        - AI : they will kill eachother if they are to hungry (also if hunger>85)
         
        V1.9.3b
        - Optimised : This addons was not laggy but I rewrited some part of the code. This addons does at least 1.5* less calcul !
        - Balanced : There is more chance that a Zombie spawn from an headcrab’s egg.
        - Headcrab can lay 2 eggs ! (random :P)
        - Added a secret name. Muahahahh.
        - Fixed the ERROR model that you was able to see when entity just spawned.
         
        V1.9.3
        -Always show name and hunger of colonies Npc.
        -Wamilou joined the coding
         
        V1.9.2
        -fixed a bug.
        -optimised a thing.
        -added funny names XD !
         
        V1.9.1
        -changed 2 tree's name.
         
        V1.9
        -Fixed bug related to gmod update
         
        V1.8.1
        -changed con_vars name.
        -added co_remove (if on remove all colonies thing if off just play like before ;D)
        -changged some convar data.
        -100% working
        -1 bug detected since V1.7 : antlion/ headcrab sometimes are trapped in tree
         
        V1.8b
        -Secret meat update (not really secret)
        -change some cvar :D (some limit are awfully bad)
         
        V1.8
        -Meat added:
         --can be spawned like melon
         --spawn when npc die in a war(only)
         --Meat auto remove when too old
        -Balancing (changing cvar)
         
        V1.7
        - Tree can't fall
        - Egg are now killable with any damage like melon
        - removed combine/rebel
        - Headcrab egg and spawn can spawn 1 zombie (balancing)
        - Bug fix
        - and some other thing
         
        V1.6
        -Changed limit and small things
        -added combine and citizen
        -it took me 2 hours
        -100% working !
         
        V1.5
        -New limit !
        -100% Working !
         
        V1.4
        -no more fast headcrab who auto kill on melon !
        -no more combine and rebel (useless)!
        -gmod update bug fixed !
         
        V1.3b
        -New limit !
        -some bug fixed!
        -plant limit fixed!
         
        V1.3
        -plant limit added (BUGGY AS HELL)!
         
        V1.2
        -added all other tree
         
        V1.1
        -added big tree
         
        V1
        -Added Combine Rebel.
        -Don't need C:SS any more
    [/release]

    IMPORTANT NOTE : If you get any type of lua error related to this addons, say it ! It'll help us fixing it.
    Reply With Quote Edit / Delete Reply Windows 7 France Show Events Lua King Lua King x 2Winner Winner x 2Informative Informative x 1 (list)

  2. Post #2

    September 2010
    23 Posts
    Any suggestion, bug or question ?

  3. Post #3

    September 2010
    23 Posts
    Pre release now available on Workshop, if anyone as a request / a bug / a suggestion, please post here or on Workshop.

  4. Post #4

    May 2012
    14 Posts
    There is a bug when you right click with the RC Order gun it gives this error:

    [Barbed Wire|44|STEAM_0:0:27660669] Lua Error:

    [Realistic Colonies] lua/weapons/rc_order_gun/shared.lua:119: attempt to call method 'SetLastPosition' (a nil value)
    1. unknown - lua/weapons/rc_order_gun/shared.lua:119

    EDIT: And have selected the Antlion / Headcrab*

  5. Post #5

    September 2010
    23 Posts
    I'll try to fix that tomorrow, i have to go for now. Thanks for the bug report by the way.

    Here is some "known" bug :
    - Jumping on npc may make them become invisible (but why ?)
    - While growing, the npc physic may stuck things (since the physics model is growing ...)

    EDIT :
    Update 2.0 pre release 2 is out :)