The Trinity Rendering Engine is made by Andrew Lucas, which contains a lot more features, which are even included in Valve's powerful "Source" Engine. Trinity Render is now being wisely used in most of the mods.

Post tutorial Report RSS How to use Trinity in a mod

A tutorial showing how to use Trinity Render in your mod.

Posted by on - Basic Starting a mod

Having trinity render in your mod is easy. First, put "trinity" folder in Half-life folder which will be your mod folder. Then, open liblist.gam and you will see like this:

// Valve Game Info file
// These are key/value pairs. Certain mods will use different settings.
//
//For any possible future updates, check this link:
//https://skydrive.live.com/?cid=ce9cc3fbfe20ab9a&sc=documents&uc=1&id=CE9CC3FBFE20AB9A!103
//If you have anything to report, write an e-mail to:
//boeschitt@hotmail.com

game "Trinity Renderers"
startmap "c1a0"
trainmap "t0a0"
mpentity "info_player_deathmatch"
gamedll "dlls\hl.dll"
gamedll_linux "dlls/hl_i386.so"

type "singleplayer_only"

rating "9.2"
svonly "0"

There, change the "Trinity Renderers" to your mod's name. Ex: if you make a mod named, "Death", change "Trinity Renderers" to "Death".

change startmap to the name of your mod's start map.

change trainmap to the name of your mod's training map. (optional)

mpentity is based on your mod's used entity. It shows the entity where player is started in multiplayer. NOT in singleplayer. (optional)

change gamedll to your game's dll file located in dlls folder. If it is named d.dll located in game_dlls folder, change it to"game_dlls\d.dll" But, BE SURE to have all of the trinity's codes in your dll.

gamedll_linux shares the same method with a top one.

type is also based on your mod. If your mod is multiplayer (like counter-strike), change to "multiplayer_only". If your mod is singleplayer, just leave it. If your mod is both single and multi, just leave it.

For rating "9.2" and svonly "0", you can just skip.

Also, don't forget to change the folder name "Trinity" to your mod's name.

I will write the basic tutorials later.

Waits for Trinity-based NON-HL IMPROVEMENT mods...

Comments
paologerochi
paologerochi

hey RedFog can you make this in Natural Selection? please... I don't have the trinity's codes in my dll I don't know about dll files and compiling them

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

EmptyDestroyer
EmptyDestroyer

hey RedFog. little question. i am new in this parto (programmer). i have you source code and i add new weapons (i follow tutorials). how to build dll? is a client.cpp or what? sorry for my bad english again

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Half-Life
Game
Half-Life
Creator
RedFog
Contact
Send Message
Release date
Mod watch
Follow
Tutorial
Tags
Tutorial
Browse
Tutorials
Report
Report
Share
Related Games
Half-Life
Half-Life First Person Shooter