Coder Social home page Coder Social logo

resgen's People

Contributors

sbenfold avatar

Stargazers

 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

resgen's Issues

Any one character after a backslash should be removed

Half-Life simply removes any character after a backslash (unless it's \n which becomes a newline), so \x becomes \, \! becomes \ etc. Take this map for example: https://twhl.info/vault/view/2285 It contains

{
"origin" "-546 423 -402"
"framerate" "10"
"angles" "0 0 0"
"targetname" "skeleton1"
"model" "models\!uplant3.mdl"
"rendercolor" "0 0 0"
"classname" "cycler_sprite"
}

but models/uplant3.mdl (no exclamation mark) gets loaded by Half-Life. Resgen on the other hand, includes "models/!uplant3.mdl", even though uplant3.mdl is a model that comes with Half-Life.

I believe this is the code that's responsible https://github.com/id-Software/Quake/blob/bf4ac424ce754894ac8f1dae6a3981954bc9852d/WinQuake/pr_edict.c#L693-L717

Resgen hangs with 100% CPU and not working for map de_dust2_2009.bsp

Version: 2.0.3
OS: win+unix
map: de_dust2_2009.zip

root@user-desktop:/opt/cs-resources/resgen# ./resgen -o -m -f /opt/cs-resources/trashmap/de_dust2_2009 -e /opt/cs-resources -b /opt/cs-resources/resgen/rfa/res_cstrike.rfa
RESGen version 2.0.3, Copyright (C) 2000-2005 Jeroen Bogers and Zero3Cool
RESGen comes with ABSOLUTELY NO WARRANTY; for details
use the command line switch '-w'.  This is free software,
and you are welcome to redistribute it under certain
conditions; see the 'gpl.txt' file for details.


Loaded resource exclude list /opt/cs-resources/resgen/rfa/res_cstrike.rfa

Searching /opt/cs-resources/ for resources...

Creating .res file /opt/cs-resources/trashmap/de_dust2_2009.res [1/1].
^C

root@user-desktop:/opt/cs-resources/resgen# ./resgen -v -o -m -f /opt/cs-resources/trashmap/de_dust2_2009 -e /opt/cs-resources -b /opt/cs-resources/resgen/rfa/res_cstrike.rfa
Generating RES files. Please stand by...

^C
S:\>S:\resgen\RESGen.exe -o -m -f S:\1test\cstrike\maps\de_dust2_2009 -e S:\1test\cstrike -b S:\resgen\rfa\res_cstrike.rfa
RESGen version 2.0.3, Copyright (C) 2000-2005 Jeroen Bogers and Zero3Cool
RESGen comes with ABSOLUTELY NO WARRANTY; for details
use the command line switch '-w'.  This is free software,
and you are welcome to redistribute it under certain
conditions; see the 'gpl.txt' file for details.


Loaded resource exclude list S:\resgen\rfa\res_cstrike.rfa

Searching S:\1test\cstrike\ for resources...

Creating .res file S:\1test\cstrike\maps\de_dust2_2009.res [1/1].
^C
S:\>S:\resgen\RESGen.exe -o -m -f S:\1test\cstrike\maps\de_dust2_2009 -e S:\1test\cstrike
RESGen version 2.0.3, Copyright (C) 2000-2005 Jeroen Bogers and Zero3Cool
RESGen comes with ABSOLUTELY NO WARRANTY; for details
use the command line switch '-w'.  This is free software,
and you are welcome to redistribute it under certain
conditions; see the 'gpl.txt' file for details.


Searching S:\1test\cstrike\ for resources...

Creating .res file S:\1test\cstrike\maps\de_dust2_2009.res [1/1].
^C
S:\>S:\resgen\RESGen.exe -v -o -m -f S:\1test\cstrike\maps\de_dust2_2009 -e S:\1test\cstrike
Generating RES files. Please stand by...

^C
S:\>

de_dust2_20090000

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.