.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...

Forum Thread
  Posts  
Engine code (Groups : qc : Forum : hard_code() : Engine code) Locked
Thread Options
numbersix
numbersix quake-c coder++
Jul 10 2015 Anchor

I need to load entities with map chunks. The main map has already been loaded. This is for the map hack system.

Using quake-c becomes overly complicated - you have to read the entity list at the end of the bsp file. The engine already does this.

This is darkplaces handle for the .ent replacement files:

// load replacement entity file if found
if (sv_entpatch.integer && (entities = (char *)FS_LoadFile(va("%s.ent", sv.worldnamenoextension), tempmempool, true, NULL)))
{
___Con_Printf("Loaded %s.ent\n", sv.worldnamenoextension);
___PRVM_ED_LoadFromFile (entities);
___Mem_Free(entities);
}

Going to try making a builtin function call for that. See if I can live load ents after the main map load.

(and it really irks me that this editor cant use tabs, non-breaking spaces, css indents or any other form of spacing. I cheated with _ it wont compile, but I have indent.)

Edited by: numbersix

Reply to thread
click to sign in and post

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.