Modding API · Windows, Linux & Android · two games

Carnivores: Dinosaur Hunter HD & Ice Age

Two hunting classics in one program: dinosaurs, or mammoths, smilodons and bears in the snow, on the PC or on a phone, with a switch between the games on the main menu — and mods for everything: new animals, weapons and maps, Lua script mods with their own menus, multiplayer.

A Dinosaur Hunter HD hunt, with a script mod's names and health bars over the dinosaursTwo mammoths in a snowy forest in Carnivores: Ice Age
Two games, one programCarnivores: Dinosaur Hunter HD and Carnivores: Ice Age in one executable, each with its own saves, settings and trophies. Install one of them or both.
Switch anytimeMore → Switch to Ice Age / Dinosaur Hunter on the main menu restarts in the other game. Not installed yet? The setup asks for its APK first.
PC and phoneMouse and keyboard on Windows and Linux, every key rebindable, any window size; the original touch controls on Android. The same mods everywhere.
Your own copyBring each game's Android APK (2.0.1) once: the first start checks it and unpacks the game data.
File modsReplace textures, models, sounds, maps and texts by dropping files into a mod folder.
Content packsNew animals, weapons and maps in the hunt menu, and every price and rule, in plain JSON.
Lua scriptingEvents, creatures, the hunter, HUDs, menus, sounds, saves: a full API with an in-game console. One mod can run in both games.
MultiplayerHost or join a hunt: mods get networking and an automatic sync of creatures and players.

Play

  1. Download the zip (Windows), the tar.gz (Linux) or the APK (Android) from the latest release; unpack the zip or tar.gz anywhere, or open the APK on the phone to install it.
  2. Start carnivores.exe, ./carnivores or the Carnivores (Modded) app.
  3. Give it your APK of Carnivores: Dinosaur Hunter HD 2.0.1 or Carnivores: Ice Age 2.0.1 (or both): drop it onto the setup window, or on a phone choose it, or tap Use the installed … when the original game is on the phone. Done — it happens once per game.
  4. Switch between the games any time: More → Switch to … on the main menu.

Modding

Carnivores: Dinosaur Hunter HD and Carnivores: Ice Age load mods, on Windows, Linux and Android alike: folders or zip files in the mods folder, one folder for both games (a mod's mod.json says which games it is for: Games). A mod can do any mix of three things:

What it is What it can do
File mod game files with the same names as the originals, or glTF models from Blender (glTF) new textures, models, sounds, maps, menu art, texts
Content pack JSON files in content/ new dinosaurs, weapons and maps in the hunt menu; every price, reward and hunt rule
Script mod Lua code (main.lua) anything at run time: spawn and control creatures, game modes, HUDs, menus, shops, events, multiplayer

Mods combine: a "Velociraptor pack" can ship new models (files), make them huntable with prices (content) and give them pack-hunting behaviour (script). In the game, MODS on the main menu switches mods on and off and orders them, F1 opens the mod menu (script mods' panels and settings), ` opens the Lua console, F9 reloads every script.

New here? Start with Getting started: a working mod in five minutes. Script mods reach every value of the game's objects (creatures, species, weapons, the hunter, the weather, the hunt): Game data.

Creatures' minds are open too: Creature behaviour and AI shows the events around every creature and the hunter, the game's own creature functions, brains that replace a species' AI and Ice Age's AI toolkit for both games. Zones, populations, herds and packs decide where and when animals live and let them move, flee and hunt in groups, and Menus and pages adds buttons and whole screens in the game's own style. The picture is open as well: Shaders colours, styles and bends the world, adds screen effects and your own post shaders, and replaces the game's shaders while it runs, and Weather brings rain, thunderstorms, snow and fog, fading in and out over the map's own weather.

Guides

Lua API reference

Eventseverything mods can react toGlobals and the sandboxprint, require, on, inspect, class and the standard library a mod gets.events (on, emit)Listen for game events, add your own, talk to other mods.gameThe game's state: which game, stage, hunt, version, screen, messages.playerThe hunter: position, view, health, items.worldCreatures: spawn, find, kill; fights, god mode; the ground.cameraA follow camera on any creature.uiWindows, buttons, sliders, tabs, tables: Dear ImGui for mods, and the mod menu.drawHUD drawing: text, shapes, bars, over the game.hudThe game's own HUD: hide, move or resize its parts, open and close the hunt's menu.soundPlay sounds, from the game or your mod.keysKeyboard and mouse.touchOn-screen buttons for a phone (since API 3).timerRun code later, or again and again.modYour own mod: files, saved data, settings, exports.modsOther mods: their exports, the list, reloading.netMultiplayer: host, join, messages, the automatic sync, other players.contentSpecies, weapons, maps, prices, rules and licences at run time; script AIs.jsonRead and write JSON.math, string, table extrasHelpers added to Lua's own libraries.weaponsWeapon definitions and the shot's spread, range and recoil (since API 3).equipmentThe hunter's equipment in this hunt: switch it on and off (since API 3).huntThis hunt: credits, cooldowns, resupplies, the call, trophies, statistics, ships, rules (since API 3).profileThe player's profile: credits, relocations, resupplies, trophies, statistics (since API 3).aiThe AI toolkit: brains, Ice Age's AI helpers for any creature, species brains.menuThe game's own menus: buttons in its style, pages, the game's buttons hidden or moved, menu events.zoneNamed parts of the map: circles, boxes, polygons, terrain regions; enter / leave events (since API 3).groupHerds and packs: groups that follow a leader, share alerts, flee and hunt together (since API 3).populationWhere and when species live: counts, places, herds and packs, respawns (since API 3).shaderThe game's shaders: world and screen effects, your own post shaders, live GLSL.weatherRain, thunderstorms, snow, fog and the cloud cover, with presets that fade the map's weather in and out (since API 4).

Screenshots