Forum posts

Posted 5 years ago2019-03-13 17:47:25 UTC
in A Utopia At Stake Post #342253
It's possible to detect if the game window has focus with SDL2
Yesss, that's exactly what I was thinking about!
On other OSes lile Linux, you will likely need a soundfont first.
GASP I almost forgot.
I gotta try compiling my mod's code for Linux one day. It's gonna be one hell of a ride IMO. :P
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-12 21:33:43 UTC
in A Utopia At Stake Post #342237
100% because I can. :)

But seriously, AFAIK FMOD supports MIDI music, so something like that would be amazing, because then you can save a lot on space. :D
And then there's OGG support.
and music will play even if you go to menu (and even if you minimize the game, AFAIR)
Sounds and music can be paused though, can't they? As for minimising the game... pretty sure there's a solution to that too, even if it's a bit ugly coding wise. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-11 21:03:00 UTC
in A Utopia At Stake Post #342217
After a month of silence, it's time for some news. :3
  • The FMOD implementation is so-so. It loads the library, starts the system, creates and loads a sound, but fails to play it.
User posted image
User posted image
Yeah. But I think I know the cause. I'll get to it later on.
  • The Vehicle API has been enhanced, and simplified so I can make it easier for myself, and for others, to actually code the vehicles.
In the VehicleThink() function, you can now just place these two:
User posted image
...instead of manually and individually setting the origin of the player, the seats, setting the angles etc.
Basically, you have to set positions for each seat, then for the player, then the angles, listen to the commands from the player, and perhaps other things in the near future. Now you just need to call 3 functions or so, as opposed to writing 5-6 lines per seat (now imagine having a minibus vehicle with 16 seats - blimey!).

Support for studio model vehicles has been added, so now I can finally have vehicles with bones, controllers and whatnot. It was just sitting there and all I needed to do was precache and switch the model, if the mapper assigns a "model" keyvalue. It looks pretty neat:
User posted image
Currently this is just me debugging the seat position stuff. With the chair, it was really easy because you'd just snap the player to the centre of the chair, but now you gotta add a bit of trigonometry and vector maths. :P

Being based on the chair code, it behaves exactly like the chair: https://i.imgur.com/b5Bxqrn.mp4

Now, what's next?
  • A seat-switching algorithm (you can switch to another seat e.g. from the driver to the passenger seat if it's not taken by a player)
  • Motor/engine stuff, like switching gears according to the RPM. (manual transmission one day? Who knows)
  • Binding seats to bones, and utilising controllers for special vehicles (studio model only stuff - brush-based vehicles will use my maths xd)
  • Potentially a way of scripting vehicles in text files. Stuff like engine horsepower, gears, the model and whatnot. This way, it will not be hardcoded, nor "hardmapped" (even tho' you can ripent a map etc.), and it will still remain serverside. :D
  • More complex vehicles: aircraft, boats, and ultimately... cars and... maybe if I become mad enough, NPC vehicles
  • Eventually, NPCs that can drive vehicles. That would be insane, don't you agree?
Before I move on to that, I'll have to polish the current set of features and fix bugs (there's gotta be some!). I still have to code taking damage, exploding, switching the engine on and off, emitting sounds... Basically the smaller things. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-09 23:19:58 UTC
in Better shadows? Post #342202
You simply can't get more high-res lightmaps without altering the scale.

As Bruce said, take a, for example, 128x128 texture and upscale it to 512x512, then apply that and scale it to 0.25 and 0.25.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-08 23:28:29 UTC
in The "-chop #" in the VHLT compiler. Post #342193
Your Celeron will surely handle it only slightly better than my Core 2 Duo T7500. :D

BTW you can find a bunch of other parameters here with screenshots:
link
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-08 17:43:24 UTC
in The "-chop #" in the VHLT compiler. Post #342190
User posted image
Chop 512, texchop 256. Compilation time on my 2007 laptop: a minute or two.
User posted image
Chop 8, texchop 4. Compilation time on my 2007 laptop: an hour. An hour for just this room.

The difference is in the corners of the room. And that's all. Literally. It's almost like some sort of AO. :P
For final compiles, -chop 32 and -texchop 16 would be reasonable enough, while you can freely increase them to 512 and 256 in non-final compiles.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-05 00:42:58 UTC
in More mods that never were... Post #342143
The mods I'm about to describe are actually the same mod, that actually got rewritten about 2 or 3 times between 2015 and 2017.

Admer: The Game

Premise

In late 2014, I had QBasic programming classes. Inspired, I decided to create a text adventure game with visuals. Inspired by Zork for the text adventure aspect, and Another World for the "another world" aspect, and the visuals. However, I was quite limited by QBasic and I would draw things line by line, manually, making animation super lengthy and tedious for myself. I only stuck to the textual component.
In 2015, I decided to convert my QBasic text game into a Half-Life single player map pack.
I made the first level and 13-year-old me wanted to do more. So, I wanted to do a total conversion.

Story:You wake up in a cave after getting knocked out by some bandits hours earlier. You get out of the cave, find an empty house with some things, pick those up, and try to find your way through the forest.

Progress

It was rapid at first. I made 3 maps within the first couple of months (albeit, very low quality maps).
The caveThe cave
Outside of the caveOutside of the cave
The houseThe house
The maps were really all that was made for the mod. It had around 3 or 4 maps.

What happened?

It was solely based on my QB text adventure game. I got bored of it, and I wanted to make it more interesting.

Rewrite!

An unknown game

Premise

You were playing as Admer (not me, rather an Admer from a parallel universe who's way more capable than me). You somehow ended up on a different planet called LoG (Land of Gamers - will be explained soon) with no memory of what happened within the past 24 hours. You had to get out of the cave by blowing up the TNT and fighting your way through a zombie-infested forest with abandoned houses, until you reached the city. [sudden end of footage]

Progress

New HUD sprites were made, a main menu background was added as well as AVI startup videos. I was developing that on a pirated Half-Life copy, which still had the D3D renderer and could play AVIs, so definitely before the Steampipe update. Either way, it ran. :)
BUGZ Inc.BUGZ Inc.
Most importantly, programming!

What happened?

This wouldn't last too long, as I wasn't satisfied with the mod's goal again, so I rethought of it once more.

Rewrite!

An unknown game, revision 1

Premise

It was 2016 when this revision occurred.

Story: In the 80s, scientists discovered a portal to a parallel universe. In the 90s, a rich dude gathered a team of researchers, scientists, and life-sentenced prisoners to create something he always wanted: a way to change the appearance of his body so that he could look like a furry. Gotta explain the humanoids on LoG somehow!
In 2017, you travel to that universe because of education, and a brighter future. It was called Land of Gamers because, pretty much, most people who lived there were gamers. The cave and forest level actually then became a "game inside a game", basically, the player would enter a friend's apartment somewhen in the 3rd chapter, and he'd ask the player to test his VR game.

Tech: New entities were planned, and some gameplay tweaks.

Progress

User posted image
User posted image
User posted image
Mapping skills improved, so I could deliver more interesting entity setups. New textures were also being added, as well as new sounds and voice acting.
DEBUGZ Corp. takes over BUGZ Inc.DEBUGZ Corp. takes over BUGZ Inc.
CRASH Inc. appears on the marketCRASH Inc. appears on the market
Finally, I had more success in coding and I could copy-paste things I wanted without errors. But still, not make my own code. xd

What ultimately happened?

The whole thing eventually fell apart, as I couldn't keep up with anything. I lost motivation completely, and I didn't want to continue. I was getting into making maps way more (and that's the skill that I've really developed the most, throughout those years - now I'm developing the rest to a similar level).
I'll quote what I originally said about that matter:
Like most of these Half-Life mods, this mod lacked a good coder. Back then, I understood none of the code, and I didn't know how to write my own code. I was a copy-paste coder. I only knew QBasic. Now I know some LUA, and I can code for Far Cry.
What's worse, I didn't know how to model. Now I do, but it's too late now. I had to make simple, low-poly models, but I didn't have the skill to model a simple rock. Now I can model cars, weapons, characters and many other things.
What's even more worse than that, is the fact that the mod actually had many characters in the story. Thus, a lot of voice actors would be required (voices for Barnes, George, Jody, random citizens, radio chatter etc.). And an awful lot of maps would be made (like, 40 of them).
Then, I simply stopped working, as I was getting deeper and deeper into CS mapping. 3 months ago, I transitioned completely to work with CryEngine 1.

I hope I will continue to work on this mod in the future, when I am capable of being a 1-man modding machine. This was simply too much work for 1 person.
But not any more. I've become just that, and I'm hoping to revive this.

It just definitely won't be the same. It'll be like a revision 2, except that's called 'Utopia at stake'.
I'm putting these here, because they're pretty much different than the mod I'm going to make. Admer: The Game was supposed to be an adventure, exploration, an expedition to an unknown planet gone wrong, with action. An unknown game would've initially been just like ATG except it'd be heavily story-based, so you'd get to know some characters. An unknown game, revision 1, would've been about saving the planet, and your love~

Bonus:

AUG: Quest for Burek (Far Cry)

Premise

2016. I wouldn't let the An unknown game franchise die so easily. I had to do something. So I decided to make a sequel for Far Cry. This time, the protagonist was one of Admer's friends from elementary school, and the year was 2023. Some terrorists came to Admer's and Roki's hometown and destroyed the local burek place.
Roki got mad, but he couldn't do a thing about it. Admer came in, speeding in his orange Zastava 750, listening to accordion mixes. They barely escaped the terrorist attack.
Throughout the mod, you'd visit LoG and come back to Earth occasionally, and you'd eventually learn about The Organisation, which is responsible for the civil war that Admer stopped, back in An unknown game/Utopia at stake. Eventually, you'd track down their leaders and kill them off one by one, and the boss would be the last.

From the technological aspect, I would've started using satellite mapping, and I planned to add entities that extend the functionality of Far Cry maps, even though it had quite a few entities by itself: ProximityTrigger, AreaTrigger, AITrigger, DelayTrigger etc.

The so-called AUGU (An unknown game universe) got most of its lore from this time period. I improved the story, added way more content to it, and laid the foundation for the whole plot. There is a blog on GB about it but, it's outdated.

Progress

This time, I had something I didn't have before. A plan. First, do the technical part, then the assets and to realise the concepts.
I stuck to it initially, and it worked. I coded some vehicles, weapons etc.
User posted image
User posted image
It always begins with a chair!It always begins with a chair!

What happened?

Well, I couldn't stick to the plan and alas, my laptop was from 2007 so it wasn't really suited for CryEngine 1.
I lost motivation for that one too, since I started working on the whole mod instead of finishing the damn technical part. It was a fun ride, though. Who knows, it might just get that sweet revenge of being revived as well. Not entirely sure, but I'd love to do it, since Far Cry is such a nice game to make mods for. :)

These old mods of mine are definitely merely historical papers right now, but they paved my way in various skills, and brought what can be years worth of thoughts, stories, and a bit of love. They may be definitely dead now, but I'll bring them back to life. One day.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-03 14:33:45 UTC
in Waypoints for this maps [Firearms] Post #342128
"The BSP_tool utility also allows you to automatically generate HPB bot waypoint files using the information in the BSP file to place the waypoints."
Oh neat. Didn't see that. ^^
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-02 10:00:20 UTC
in Waypoints for this maps [Firearms] Post #342116
"There is an open source tool on botman's sites"
The only Botman site I know is this: link
I didn't manage to find it there though.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-01 19:22:01 UTC
in Locked Door Post #342112
Here is something that has stuff about masters: link and link 2.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-03-01 18:39:17 UTC
in Locked Door Post #342110
Masters and optionally, multisources. I believe there's a tutorial on TWHL somewhere.

Doors are entities that can have masters, which control whether they are locked or unlocked. If the master entity is turned off, the door is locked and vice-versa.
So you could also select a Locked Sound and an Unlocked Sound, just to have an audio confirmation that the door is locked/unlocked.

Now, the master entity could be anything that has an on and off state, e.g. buttons. I don't know how the scene with Barney was exactly done, but this should give you an idea. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-21 23:11:50 UTC
in Firebot problem Post #342067
@sample vodka

How did you fix the problem? What was the solution?

There we go. Hopefully he'll reply now. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-20 15:45:10 UTC
in Post your screenshots! WIP thread Post #342062
Oh, now I've got even more plans for that drink machine. I know just the right thing to do. ;)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-19 13:04:31 UTC
in I've returned once again with some more problems Post #342057
For the button, you can check the flags, so it's either X axis or Y axis.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-18 00:27:16 UTC
in Post your screenshots! WIP thread Post #342055
I've got lots of everything to deliver, lol.

@abbadon
Yes, that is my high school. :)
Recently a construction site was built around the school, they seem to be doing something about the facade. So I think it'll be a nice detail to add eventually.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-17 18:14:47 UTC
in Post your screenshots! WIP thread Post #342052
User posted image
User posted image
User posted image
User posted image
User posted image
I still haven't compiled this thing, lol.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-09 20:37:16 UTC
in Slight issue with map compiling (hlrad) Post #342002
Yay. :D
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-09 16:07:23 UTC
in Slight issue with map compiling (hlrad) Post #342000
"The only difference between the two is that one is stuck doing an idle animation whilst the other is free to move but I don't see how this would have an effect."
Think of it as one guard being busy. What does your entity setup look like? What entities are triggering what, and what keyvalues/entity properties are being used?
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-06 21:46:51 UTC
in Slight issue with map compiling (hlrad) Post #341986
Write this into the console:
developer 2
Restart the map and you'll see a real-time log of what is actually going on, what entities are being triggered etc., and then try to see what's the issue.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-06 15:15:19 UTC
in Slight issue with map compiling (hlrad) Post #341984
Oh right, one more thing: the point file's lines actually do end up in the void in the end. The thing is, you gotta track the line to see if it's going through a brush or not. The lines will "find their way" through any hole in the map, basically. Watch out for teeny tiny gaps.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-06 12:30:21 UTC
in Slight issue with map compiling (hlrad) Post #341982
I didn't mean it. No need to be sorry.
"I have literally no idea why this is happening because the entire map is completely sealed off from the void."
Do you have any entities outside of the map? All entities should be inside of the rooms, even things like lights, or info_ entities etc.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-05 19:50:45 UTC
in Slight issue with map compiling (hlrad) Post #341978
"Only problem now is how I bring up these blue lines so I can see what's causing the issue."
You don't read anything I write, do you? :V

Here:
You can open your map's portal file to analyse what VIS has to calculate.
Where your .bsp file resides, there will also be a .prt file. Open it with a text editor, and you'll see something like this:

1681
3982
2
1
1
10
1
1
1
4
15
4 688 45 ( 400, 500, 600 ) etc.

You'll want to skip the first two lines, because those are the number of portals and visleaves, IIRC. Then delete whatever is between them and the coordinates (basically, delete the "garbage" numbers):

1681
3982
4 688 45 ( 400, 500, 600 ) etc.

The last line that I wrote won't actually look like the one in a .prt file, but you can get the idea.
This file is generated per each compile.
Then, you open the .prt file with the map editor: Map->Open Portal File.
BTW you might wanna check if you accidentally func_detail'ed a wall or a ceiling or something. This is where screenshots would come in handy. Does the line go through walls? If yes, then check for errors with Alt+P, there might be an invalid brush.

And don't worry about the sins, it's a joke. Mapping is no religion. :P
Admer456 Admer456If it ain't broken, don't fox it!
I'm still pretty much running Windows XP SP3 on two PCs, albeit I turn them on rarely. We'll see what will happen in 5-10 years. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-04 23:53:31 UTC
in Slight issue with map compiling (hlrad) Post #341965
An aiscripted_sequence forces the AI to do it. It's like the God of AI, even prevents death while it's being executed. :)

func_detail basically prevents the "cutting" of portals, and lets you control the contact BSP face splitting.
Without func_detailWithout func_detail
Now what would happen if we assign func_detail to these boxes?
User posted image
Firstly, there would be less portals and less stuff for VIS to calculate. In this case, it's just one room, so the portal file would actually be 'empty':
mapname.prt
-----------------
1
0
6
Secondly, these boxes would not "cut" the floor into multiple faces as they did previously.
User posted image
I added another block there just so the portal file wouldn't be empty. Basically, func_detail simplifies the map's portals (these blue rectangles), but it should absolutely not be used on walls, ceilings etc.
It acts as a non-entity, but it'll still be treated as an entity by the compiler, so it won't block any leaks.

Here's another example. (oh the mapping gods, please forgive me as this sin is for the purpose of enlightenment)
User posted image
Each of these volumes defined by these blue boundaries can be considered a room. Basically, VIS thinks there are multiple rooms in there, while it's just some space around a pipe. Doesn't make much sense. So it should be func_detail. You can use func_detail on basically anything that causes unneeded complications in VIS calculations. Chairs, tables, lamps, maybe window frames, furniture, static vehicles, pipes, signs, poles etc. should all be definite func_detail candidates.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-03 17:08:46 UTC
in Slight issue with map compiling (hlrad) Post #341946
If HL VIS is stuck, your map needs some optimisation. Can you show us some screenshots of the map?
Usually, tiny brushes that are merely architectural details (or even prop-like things like signs, fences, railings, tables, chairs, lamps, small rocks etc.) should definitely be func_detail.

The compile warning is really just a warning. It also means that the geometry is a bit funky or unusual, so the compiler can interpret the geometry in more than one way (hence ambiguous). Generally, it's completely fine, not much to worry about.

Are you triggering the sequence that the guard is supposed to do? Some more context is needed, and some of the keyvalues that are being used by the entity setup. Try the aiscripted_sequence entity, too.

Not much is wrong with J.A.C.K. except for the few bugs it has and it's closed-source (and the author pretty much hasn't updated it in a while). Sledge is open-source and will surpass J.A.C.K. one day, I hope. But hey, if it weren't for those two, almost all of us would be using hacked Hammers, or Hammer 3.4, or even worse, QuArK. D:

Oh, also:
You can open your map's portal file to analyse what VIS has to calculate.
Where your .bsp file resides, there will also be a .prt file. Open it with a text editor, and you'll see something like this:

1681
3982
2
1
1
10
1
1
1
4
15
4 688 45 ( 400, 500, 600 ) etc.

You'll want to skip the first two lines, because those are the number of portals and visleaves, IIRC. Then delete whatever is between them and the coordinates (basically, delete the "garbage" numbers):

1681
3982
4 688 45 ( 400, 500, 600 ) etc.

The last line that I wrote won't actually look like the one in a .prt file, but you can get the idea.
This file is generated per each compile.
Then, you open the .prt file with the map editor: Map->Open Portal File.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-03 16:46:56 UTC
in HL1 Machinima Post #341944
Well, it's a success. I'm thinking about creating maps for this.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-01 21:48:53 UTC
in HL1 Machinima Post #341911
What if he's got an Intel GPU or something else? Then there's no other option than stuff like OBS, Action etc.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-01 20:31:34 UTC
in HL1 Machinima Post #341909
"recording things with fraps"
Not necessarily. I've recorded mine with Mirillis Action. :3
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-02-01 19:56:02 UTC
in Slight issue with map compiling (hlrad) Post #341908
Pretty sure he'd have the same questions and problems even if he had used Sledge (if not some more stability issues too). Though, what I've just said won't be valid after the next couple of years. :P
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-29 14:50:47 UTC
in Slight issue with map compiling (hlrad) Post #341883
Confident as in, the AI will be 100% sure what way to go. Should the way they go be correct or not, eeeeh, it depends on the mapper and how the nodes are placed.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-28 19:20:30 UTC
in Slight issue with map compiling (hlrad) Post #341877
"ai nodes"
AI nodes are just a 'GPS system' for the NPCs. When you place these nodes, you're giving NPCs confident information as to what way they can go. Without nodes, they use pathfinding and sometimes they're not too good at it.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-27 23:42:18 UTC
in Slight issue with map compiling (hlrad) Post #341869
"Also I’m trying to get a scientist to loop between two scripted sequences but the problem is that he goes to one and just stays there."
Each scripted_sequence should target one another. seq1 targets seq2 and vice-versa, for example. I've done that in my mod once, but not sure if I used aiscripted_sequence or the regular scripted_sequence.
"However the problem is that for some reason the message appears right on que but the sentence takes a few seconds to activate."
You could delay the text message. :P
I'm not sure what causes this. Try turning on the "multi-threaded" flag in the multi_manager. Or delay the message by 0.01 seconds, and have the sentence without delay.
(might be that the specific sentence has a delay by itself, caused by the game files?)
"I’m wondering if there’s a way to get it to make a sound without giving it a move sound"
Yeah, you can use an ambient_generic entity, with initial volume set to 10, start silent and medium radius turned on. Then as you trigger the vehicle, you will also trigger the sound-emitting entity.
The only issue there is that the sound will always be emitted from the sound entity's position, meaning that it is going to sound strange if the vehicle is already far away, but the sound remained still.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-27 15:30:18 UTC
in Can't get func_trackchange to work Post #341858
Upload it. I would take a look.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-26 21:30:43 UTC
in Slight issue with map compiling (hlrad) Post #341857
What happened is basically that HL RAD ran out of available memory. How much RAM do you have? If you've got more than 4 GB, you should definitely try running the 64-bit version of RAD.
User posted image
Basically, you can switch to the 64-bit version by going to your settings, and changing the build tools, or compile tools, or something third, depending on how the map editor calls it. Simple as that.
If you can't use the 64-bit version, or you have even less than 4 GB of RAM, well, you can use less textures, since J.A.C.K. can use lots of memory if you're using too many WADs. If that doesn't do it either, then you can resort to the Compilator 3. It's sweet and manages the compilation process for you, and in some cases it can make it a bit faster when the map editor is closed.

As for the leak, I'm thinking you've now made a huge hollow box around the map. Don't do that. You can read about leaks here.
If you have small gaps that cause a leak, simply close them with either extra brushes, or by extending a nearby brush.

The strange yellow particles are probably there because the scientist, or a part of the scientist, is inside of the floor or any other solid. Make sure he spawns in the air, if you can't get rid of the particles otherwise.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-23 18:57:42 UTC
in Can't get func_trackchange to work Post #341808
IIRC when I used a func_trackchange, I had to trigger it with something, like a path_track:
User posted image
Admer456 Admer456If it ain't broken, don't fox it!
"the limitations of some engines simply don't let your realize certain visions."
Yeah, I forgot to mention that.
If you're making your own engine, you might as well set your own limits until you reach the hardware limits, but if you're working with an engine that isn't yours, then it's what I said. In the case you mentioned, however, one can always use a different engine. :P
Admer456 Admer456If it ain't broken, don't fox it!
"Engine limitations don't prevent you from making a good game. Many older games are amazing products despite (and possibly because of) their engine limitations."
An engineer's creativity depends on the limitations, be it technical (the design), environmental, or financial, or all 3. The beauty of limits is working around them, and that's what makes a clever engineer. Similar principle applies to game developers.
"No, if the engine is limited, so are you, at least if you want to do a decent FPS."
If you're getting bad framerates, I'd rather say it's your design that pushes things too far. The engine simply isn't made for it. So, you should optimise it.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-23 00:15:59 UTC
in A Utopia At Stake Post #341790
Yeah. That's what's important.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-21 22:21:24 UTC
in A Utopia At Stake Post #341775
"Well, I can be a bit abrupt sometimes"
Oh no, I didn't mean to imply anything like that, I'm just saying that your comment back then was 100% right. Especially the 1st sentence.

Anyway, after mostly improving the chair vehicle (which will probably appear as an Easter egg in the final mod), I've recorded some of it:
DevVideo 2: a vehicle!
However, since it's the 21st of January, that means that my winter break is over. :(
I won't work on this mod base very often during the next 3 to 4 months, but I'll still get a little bit of time to work on it during the weekends. :)
I'll likely leave the vehicle system for now, because there are a couple of entities I have to clean up and polish.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-19 19:36:03 UTC
in Post Your Desktops Post #341723
I love that War Games reference to the right. :P
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-19 19:19:22 UTC
in Post Your Desktops Post #341720
Save yourselves from the Recycle Bin!Save yourselves from the Recycle Bin!
What it actually looks likeWhat it actually looks like
And right before you ask me "Is it 640x480?", no. It's 800x600. :D
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-17 22:57:55 UTC
in A Utopia At Stake Post #341710
I'm glad to hear that. Especially when it's coming from you.

And you probably know why:
The only true comment for 'Admer The Game'The only true comment for 'Admer The Game'
To think that this was 4 years ago, man, it's amazing how time flies. :D

There will be mapping screenshots and stuff like that. But only test maps for now, until I finish most of the code base.
Of course, it doesn't mean that these dev maps won't be pretty. :)

My vehicle test map has got some quad terrain, and doubtlessly, so will the next few vehicle test maps. One will have a flat race track, so no terrain there, but, one will be a "4 quadrants" map having a desert, snow, jungle and rocky area, one will be completely designed for water vehicles (and air vehicles) etc.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-16 22:06:01 UTC
in A Utopia At Stake Post #341705
"I'll describe them more in my next post"
So, the vehicle system is approximately like this:

A vehicle can consist of 4 types of components. Bodies, engines, seats and wheels.
Bodies and wheels are physical components meaning they're visible and you can collide with them. Engines and wheels are, on the other hand, logical components, meaning they just contain some info.

Bodies have a model, and physical info like mass, position etc. Similar thing applies to wheels.
vec3_t pos; // from the VehicleBody type
float Mass;
float Density;
string_t m_iszModel;
Seats serve as pointers to players, and they listen to commands from the player they point at. There are 4 types of seats: driver, gunner, passenger, and driver-gunner. It's pretty self-explanatory what they do, i.e. driver seats are the only ones allowed to control the vehicle, gunner seats may control the vehicle's guns, passenger seats do pretty much nothing, and driver-gunner seats combine driver and gunner seats.
VehicleSeatType type;
vec3_t pos;
CBasePlayer *pSessilis; // Never thought you'd see Latin in the HL SDK, did ya?
bool fExists;
int iSitdex; // Cool name for a seat index ;)
Engines contain info like health, gear ratios, number of gears, drive type (currently only 4: FWD, RWD, AWD and NWD a.k.a. NoWD, which is reserved for flying vehicles and other wheel-less vehicles) etc.
int              HorsePower;
float            MaxHealth;
float            GearRatios[9]; // Maximum of 7 gears + 1st neutral 0th reverse
int              Gears;
float            Efficiency;
VehicleDrive     Drive;
To test some things, I made a chair. A simple chair that consists of a body and a seat. The body is actually a brush model, but it could've also been a Studio model. It's the bounding box that really matters. Either way, this chair handles player interaction and even a very, very, very primitive movement system where the chair slides on the floor.
User posted image
User posted image
User posted image
User posted image
User posted image
User posted image
It's a beginning. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-16 00:46:21 UTC
in A Utopia At Stake Post #341687
Before I introduce the mod, let's have a little bit of history.
3-4 years ago, I started working on my first Half-Life mod. It was originally called Admer: The Game.

It actually started out as a QBasic text game. I had QBasic classes in 7th grade, and I'd finish my tasks so quickly I'd get enough time to work on a game. It was simple. You spawn in a cave, and for some reason there's a zombie in front of you. I'll write about that one in a journal.

I had an idea to make a single-player Half-Life map pack based on my text adventure. I downloaded some textures from the Internet (stock photos, lol), and I just threw them into Wally after downscaling them. The results were this:
User posted image
User posted image
There was some dynamite at the end of the cave in the text game, so I thought I'd add it. The dynamite would explode and make a hole in the cave ceiling, so the player could exit.
User posted image
Soon after that, the player would encounter a small hut, with a pistol and a piece of paper. It's not important what's written on the paper.

As you can see, it looked kind of terrible. If you want, you can check out the mod on ModDB: https://www.moddb.com/mods/admerthegame
I once renamed it to An Unknown Game, because I understood that it was bad to call a mod by yourself. :P (in fact, I was the protagonist in the mod, lol)
The mod was supposed to get released somewhen in 2017. Clearly, it would never get to that point.

I gave up on it in Q3 2016. My programming skills sucked. I didn't know my way around the Half-Life SDK, and my mapping skills were definitely bad, as well as the rest of my skill set (except video editing, my only skill that wasn't under average).
I was lazy. All my ideas were in my head, I was too lazy to write them down and I had no mod design document, no organisation, no anything. I simply didn't know where I was going and what to do, so I half-baked everything. (ahem, quarter-baked)
I had some wacky ideas there and there, e.g. a programmable universe where people spawned things via code (scrapped, won't fit the story of AUAS). That mod is, in fact, the very origin of Jody. (you all remember her, lol)

I've occasionally visited the mod's page on ModDB in the past 2 years. I remembered the old stats, suddenly. It used to have 10s, sometimes 100s of viewers per day, and now it varies between 0 and 1. So I thought "How great would it be to do this again, except with the skills I have now?"
The time wasn't then, however,

I was analysing some progress of my skills. Since 2015, I've improved in mapping a lot, in texturing a lot, video editing significantly (I mean, not much to be improved since I've been video-editing since the age of 8), sound editing a lot, music production so-so, but there was just that one skill that stagnated. That one skill which prevented me from reviving my old mod.

It was programming. In late 2017, I started panicking due to the fact that I knew I'd have programming class the following year. So I wanted to prepare myself.
(little did I know, they hardly teach you anything here in high school when it comes to programming)

I just needed a good start. Something to jump-start my learning. And in November 2017, a guy from the 2nd or 3rd year came into our classroom, recording a promo video for the high school. We were having IT class, and our professor told us to open Dev-C++ and pretend to be typing something. They all pretended. Except me.

I opened up a source file, saw how it's written, memorised the syntax and commands within a minute, and wrote a program. When I returned home, I got VS 2010 Express, registered it and decided to make GMan vulnerable.
It was an unbelievable experience for me back then. I actually understood something for once. And all he was doing was setting his health to 50% of his max health every time he was attacked:
Now that was just the beginning. I called my little brother in and showed him that, and he was so amazed. He laughed in disbelief, because all the time he knew about HL (since the age of 2 or 3), he knew that you just can't kill GMan. Not in my mod. ;)
But then, there was a period of stagnation. I hadn't really touched Visual Studio any more. Instead, I observed. I listened to Shepard's and Solokiller's programming lessons on the TWHL Discord (lol), I've read numerous coding stories from other developers on Quora, and so on. So essentially, I did the same as I did with mapping. First read a bunch of tutorials and documentation, and then try working on it.

In late 2018, however, I got into C++ again after a long period of not doing coding. I got my new PC in July, and that meant I could finally get my hands on Visual Studio 2017, a nice step up from Visual Studio 6.0, 2005 Express, 2009 Express and 2010 Express.
My 2007 laptop simply didn't have enough space for 2012, 2015 nor 2017.

And that meant a new beginning, a new age. I was looking for some libraries that can enable me drawing stuff to a window, and boy I found one: SDL. I learnt quite some C++ for those few months, and coming back to the Half-Life SDK once again, I finally understood most of the stuff in it. It felt amazing to finally understand something that troubled you for a few years. That age was the age of learning something I've always wanted to learn.

I had prototyped a function in AngelScript for Sven Co-op (it was my first time tinkering with AS scripting), and then I decided to implement it in the HL SDK.
It led to the creation of this mod. I'll be working on the technical part for a long time. Once it's done, I'll move onto the actual mod revival itself.

So, what is this thread about?

A Utopia At Stake

Will you save it?

There's a world out there. A world where everything is close to perfect. You move because of education, a future brighter here than on Earth, and for the fun of it. Things will look perfect, until a series of events lead to the downfall...
Its fate... is up to you.

Well, I'll just post stuff here about the mod.

Here's a summary of what I've made in the last couple of months:
  • semi-auto for the pistol
  • env_viewsway, an entity that messes up the player's view angles, useful for drunk effects, rocking ships etc.; is capable of inducing nausea (seriously)
  • trigger_valueop, my personal favourite, as it can change any keyvalue of an entity which it targets, it's very powerful
  • trigger_difficulty, which triggers something depending on the skill level, which can be easy-hard but also not easy, not medium and not hard.
  • util_rotator, something that spins an entity around an axis, but it's not in a very good state at the moment (it rotates things, but eh... I feel like it should use quaternions rather than regular angles)
  • util_consoleprinter, a very useful debugging entity when you're developing an entity setup or a scripted sequence series
  • a customisable HUD with about 15 parameters, most of them being for the TDTR effect (The Deader The Redder - the lower your HP, the redder the health display)
  • vehicle_base, a really, REALLY basic vehicle. It's a chair that you can enter and exit. But the system itself is quite flexible under the hood, allowing for multiple vehicle types, whether it's cars, planes, space ships, boats, or chairs & sofas (why not). I'll describe them more in my next post
  • additions to the CBaseEntity class which allow trigger_valueop to work
  • additions to the input and client commands, which allow for sprinting (and being able to control the vehicles in a more special way) - and best of all, it doesn't need more bandwidth than 1 to 2 bytes/sec per player ;) (keep in mind that an empty map with one player is already about 27 to 50 KB/s, assuming the netgraph displays it in kilobytes/second, I could be wrong) (thanks to Solokiller for the information about pev->button)
  • new view sway, viewmodel bob, you name it (thanks to Shepard for helping me with the old HL WON rotational bob, it's 1 line, but 1 important line)
Suggest me a name for this mod, because it can still be changed. For now I'm just calling it AdmerMod 2018, and the source code AdmSrc (which has no relations to Source, it's just a short way of saying "Admer's source code").

Oh right. One last thing before the next post. I'm hoping release this mod's source code when it gets to Beta or Release Candidate, maybe even earlier. It's based on Solokiller's fork of the HL SDK, that is compatible with VS 2017. I've already sent versions of the source before the "VehicleAPI" and "ControlAPI" were written, because some people simply asked for it. :)
Admer456 Admer456If it ain't broken, don't fox it!
This post was made on a thread that has been deleted.
This post was made on a thread that has been deleted.
Posted 5 years ago2019-01-15 19:14:08 UTC
in SharpLife - Dot Net Core based modding p Post #341676
"If this require to learn C# and start all from scratch, will not it disencourage people to port their mods to SL?"
In my opinion, it may do the opposite. It may encourage people. I've never used C#, but from what I hear and see here, it seems easier than C++, and that could lead to potentially more people coming than people getting discouraged. Besides, learning a new language isn't supposed to be a bad thing. :P
Then there's the question of doing it from scratch. If the HL SDK is ported to C#, do we replicate the changes which we made to our C++ HL SDK code over to the C# HL SDK, or something else?

@hfc
There has to be a plugin for Blender that supports GoldSrc SMD. You can find out here: http://the303.org/tutorials/gold_mdl.htm
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-07 23:35:47 UTC
in Project Genesis Post #341581
They might not be compatible sometimes, but you can never be sure about things like these easily if it's your first time in the SDK. Trust me. Take your time and learn the basics of the SDK, because copying and pasting things you don't understand is definitely ending up in a mess at some point. But it won't be a mess if you understand most of it.

You have got a recreated (but incomplete) Opposing Force source code. You can fix whatever you can and complete what can be completed. After that, stitch some entities and features from SOHL that you need. Whether they are compatible or not, IntelliSense and the compiler will tell you that (and the engine once you test the features out, when they compile).

While learning the SDK, see how entities work. Read those tutorials up there. You'll get started with the server side stuff (entities, NPCs, weapons maybe), and then try some clientside stuff (HUD, view etc.), and then a combination of both. You may ultimately not need some (or in your case, most) of the things you make, but for the sake of learning, it's a good thing to do and try out different things. At least from my experience.

As time goes on, you will start creating your own entities from scratch without needing to look at other entities, and then you will fully know what to do.
I'm not making an entire SDK from scratch
Nobody has ever done that. Only Valve. You might be referring to recreating the Opposing Force code on top of the regular Half-Life SDK. You don't have to do that either, just take one foundation and complete it.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-07 15:47:24 UTC
in Project Genesis Post #341573
Yes, GameBanana has got a private messaging system.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2019-01-07 10:56:15 UTC
in Project Genesis Post #341570
Spirit of Half-Life as a whole is a little bit unstable. It's best to just borrow and stitch features from it.

Also, you maybe already know this, but just in case, make sure that you have permissions from Cybermax to actually use that in your mod. My mistake in 2015 was that I was just downloading models and never crediting anyone nor asking for permission.

Most of what you described in regards to changing (NV to flashlight, talking HEV suit, HUD changes) won't be hard.
operational Half-Life: Opposing Force source code engine
A source code engine. Hah. :walter:

As for the mod's concept, well, I can't say much since I'm more into total conversions. But, good luck with the mod. :)
Admer456 Admer456If it ain't broken, don't fox it!