zzsort / blarghrad Goto Github PK
View Code? Open in Web Editor NEWArghRad decompiled source
ArghRad decompiled source
I noticed when compiling 2 copies of the same test map made in TrenchBroom with my wal-less texture profile I made for Digital Paintball2 with the same exact settings except for the light pass. I use arghrad3 on one and blarghrad on the other. There is more than one issue here, but I am thinking they're related. The map is just a small black textured box, no light other than the surface lights I applied to the red light texture faces on the cube with a light value of 24.
There is no Linux executable of arghrad, but it works under WINE in Linux fine and compiles without issues or warnings in the terminal:
[prompt]$ wine arghrad3.exe -gamedir /home/retro/games/paintball2/pball bbox_atest
----- ArghRad 3.00T9 by Tim Wright (Argh!) -----
----- TESTING VERSION, DO NOT REDISTRIBUTE -----
Modified from original source code by id Software
----- Settings -----
-gamedir set to /home/retro/games/paintball2/pball\ (game pak dir)
----- Load BSP File -----
reading Z:\home\retro\games\paintball2\pball\maps\bbox_atest.bsp
----- Light World -----
0...1...2...3...4...5...6...7...8...9... (0)
0...1...2...3...4...5...6...7...8...9... (0)
0...1...2...3...4...5...6...7...8...9... (0)
----- Save BSP File -----
writing Z:\home\retro\games\paintball2\pball\maps\bbox_atest.bsp
----- Time -----
0 seconds elapsed
its produces this:
Now running the Linux native blarghrad on the same map with a different name to keep them separate. You can see multiple can't find file
issues:
[prompt]$ ./blarghrad -gamedir /home/retro/games/paintball2/pball bbox_batest
----- ArghRad 3.00T9 by Tim Wright (Argh!) -----
----- TESTING VERSION, DO NOT REDISTRIBUTE -----
Modified from original source code by id Software
----- Settings -----
-gamedir set to /home/retro/games/paintball2/pball\ (game pak dir)
----- Load BSP File -----
reading /home/retro/games/paintball2/pball/maps/bbox_batest.bsp
WARNING: Colormap not found - no colored texture lighting
Couldn't load pball/black
Couldn't load pball/r_lt1
----- Light World -----
0...1...2...3...4...5...6...7...8...9... (0)
0...1...2...3...4...5...6...7...8...9... (0)
0...1...2...3...4...5...6...7...8...9... (0)
----- Save BSP File -----
writing /home/retro/games/paintball2/pball/maps/bbox_batest.bsp
----- Time -----
0 seconds elapsed
The results:
The difference in the 2 screenshots in the lack of color lighting in the blarghrad shot due to not finding the color map most likely. It's also not seeing the textures in the folder as Arghrad does. Whatever is causing this for both is the same problem.
Under Manjaro Linux KDE running the following commands in the terminal:
git clone --recursive https://github.com/zzsort/blarghrad.git
cd blarghrad/src/libjpeg/
make
cd ..
make
Not sure what the included libjpeg offers over the libjpeg versions already installed from my distribution, but it seemed to compile fine withouth error so I do not show that output, but here is the output from the blarghrad/src/ compile that fails:
[tron@retro-mcp src]$ make
g++ -c -Ilibjpeg -MMD blarghrad.cpp -o obj/blarghrad.o
g++ -c -Ilibjpeg -MMD verify.cpp -o obj/verify.o
g++ -c -Ilibjpeg -MMD cmdlib.cpp -o obj/cmdlib.o
g++ -c -Ilibjpeg -MMD patches.cpp -o obj/patches.o
g++ -c -Ilibjpeg -MMD scriplib.cpp -o obj/scriplib.o
g++ -c -Ilibjpeg -MMD threads.cpp -o obj/threads.o
g++ -c -Ilibjpeg -MMD lightmap.cpp -o obj/lightmap.o
g++ -c -Ilibjpeg -MMD polylib.cpp -o obj/polylib.o
g++ -c -Ilibjpeg -MMD bspfile.cpp -o obj/bspfile.o
g++ -c -Ilibjpeg -MMD mathlib.cpp -o obj/mathlib.o
g++ -c -Ilibjpeg -MMD trace.cpp -o obj/trace.o
g++ -o obj/blarghrad obj/blarghrad.o obj/verify.o obj/cmdlib.o obj/patches.o obj/scriplib.o obj/threads.o obj/lightmap.o obj/polylib.o obj/bspfile.o obj/mathlib.o obj/trace.o libjpeg/obj/libjpeg.a -lm
/usr/bin/ld: obj/threads.o: in function `std::thread::thread<void (&)(int), int&, void>(void (&)(int), int&)':
threads.cpp:(.text._ZNSt6threadC2IRFviEJRiEvEEOT_DpOT0_[_ZNSt6threadC5IRFviEJRiEvEEOT_DpOT0_]+0x33): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make: *** [makefile:18: obj/blarghrad] Error 1
[tron@retro-mcp src]$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.