@Preach
#1335 posted by Spike on 2014/05/21 01:03:34
Preach, in all seriousness, get an updated version. That's an order!
New Release?
#1336 posted by Preach on 2014/05/21 09:21:54
Latest version on the page is 1.0 and that's like 3 years old...
#1337 posted by Spike on 2014/05/21 10:52:36
Triptohell.info
Blocked by NOD32 :(
Disable The Religious Filtering
#1339 posted by Spirit on 2014/05/21 11:27:08
#1340 posted by Joel B on 2014/05/21 19:40:33
Speaking of FTE things, what is the general story about the lack of public stable releases for FTEQW etc.? I ain't mad, just curious. I see there's development still churning away, but I typically avoid using dev builds of stuff unless there's a specific reason.
#1341 posted by Spike on 2014/05/21 22:44:32
as the v1 release proved, stable builds are not really that much more stable than stuff that has since been fixed...
I'm not really a milestone kind of person, thus there's not really any point where a release is any more worthy than another (generally the 'best' time is just before I commit some huge awesome feature that's likely to break everything, which means that the release is effectively crippleware).
plus I'm too lazy to figure out how to edit the site. :s
Beware Of The Leopard
#1342 posted by Preach on 2014/05/21 22:52:56
Yeah, it seems a shame that this kind of stuff gets lost - I guess it's the downside to that continuous integration, nightly builds stuff - there's less inclination to tie things up into a release milestone. I'll make a blog post once I've messed around with it, which will at least give it a tad more coverage...
New Version Of Win64-fteqccgui.exe
#1343 posted by Qmaster on 2014/05/28 00:31:47
@Spike: Nice! New version has some nice bug fixes (like not being able to minimize a fullscreen window).
The new version though is giving me a bunch of similar wierd warnings though:
client.qc:761: warning F307: type mismatch: void() to void(entity attacker, float damage) entity.th_pain
It's this line in client.qc under
void () PutClientInServer = {
...
...
self.th_pain = player_pain;
...
...
}
Uh...what?
Since when did assigning a function to a .func need a type to match?
Anyways, compiles nicely. Also, I think it's a tad bit faster.
Functions Not Matching Types
#1344 posted by Preach on 2014/05/28 01:05:04
Functions not matching field types quickly leads to functions being called with the wrong number of paramters. Please see:
http://www.celephais.net/board/view_thread.php?id=1&start=23053&end=23102
...and...
http://www.celephais.net/board/view_thread.php?id=60398&start=185&end=200
...for the kind of fucking-awful-to-debug issues that this warning protects you from.
Now, in one direction you're probably quite safe: if you assign functions without parameters to fields which expect parameters then the engine is doing benign busy-work for no good reason. On the other hand, assigning functions with parameters to fields which aren't going to set them will send you to bug city in entirely unpredictable ways.
#1345 posted by Spike on 2014/05/28 03:54:55
> Since when did assigning a function to a .func need a type to match?
Since people tried stuff like:
string(.void(),float,string) ohnoeswtf;
void() foo =
{
self.th_pain = ohnoeswtf;
};
you get the idea...
Wow
#1346 posted by Qmaster on 2014/05/29 04:59:45
I had no idea that could happen Preach. That makes so much sense now. I suppose the only reason the PARMs don't get 'scrubbed' was to be more optimized? Anyways I'll definitely check these warnings out now.
Warnings For Th_Pain
#1347 posted by Qmaster on 2014/06/03 03:57:03
The warning lies in the original code's usage of the th_pain function. Calls to a th_pain without sending any arguments (e.g. void () player_pain... ) are generating warnings all over the place in untouched progs.dat vs 1.06. Attempting to correct this by making all instances of a pain function include "(entity attacker, float damage)" as per defs.qc's definition would still generate some warnings, for instance in the case of func_door_secret assigning .use to the pain function for shootable secrets.
Perhaps a future update could suppress these particular instances. Just FYI, I don't know how yall are ignoring these warnings, they're kinda annoying. Anyways, I'll try to ignore them.
Potential Fix
#1348 posted by Preach on 2014/06/03 08:55:32
They are the more difficult ones to fix. I can see one way to do it, but I'm still deciding if this the best way to go about it. Keep the fd_secret_use function as it is, but create a new function as follows:
void(entity attacker, float damage) fd_secret_pain =
{
fd_secret_use();
}
This certainly fixes the warning, although it is using an extra stack frame to resolve a benign warning. In the secret door case you could get rid of the need for a pain function if you made the health of the door 1, so it dies to every attach. However, I've had the same problem on monsters which I can't afford to rewrite in that way.
#1349 posted by Spike on 2014/06/04 08:49:53
Should be able to cast it.
self.th_pain = (void(entity,float))fd_secret_use;
Essentually an 'I know, now please shut up' option.
I Suck At QC
#1350 posted by dwere on 2014/06/12 20:56:22
What's the difference between checking other.takedamage and other.health in a projectile touch function?
When a monster dies, there's a short period when it's still solid. Hitting it while it's in such condition is pretty much like hitting a regular wall. It's very hard to notice in normal circumstances, but I have a weapon that shoots ricocheting nails, and on more than one occasion nails bounced from dying monsters right into my face.
Laser touch function in hipnotic QC uses other.health rather than other.takedamage to detect a damageable entity. I tried that and it helped. What I don't understand is why.
#1351 posted by Spike on 2014/06/12 21:20:38
cthon has health (3 on hard, woo) but is not shootable.
monsters that have been killed will have a lingering <1 health value, despite no longer being shootable.
if you're paranoid about players doing exactly enough damage to drop a monster to 0 health exactly, then you might want to test for a longering th_die instead.
#1352 posted by dwere on 2014/06/12 23:09:21
Thanks. I think I'll just add an additional check for a classname (Chthon shouldn't really bleed from a nail) and call it a day.
#1353 posted by Lunaran on 2014/06/13 03:22:50
Monsters become DAMAGE_NO in Killed(), but each monster has 'self.solid = SOLID_NOT' somewhere a couple frames into each death anim.
You could check 'self.flags & FL_MONSTER' in your nail ricochet touch.
#1354 posted by dwere on 2014/06/14 12:39:55
I went with FL_MONSTER check after takedamage check returns false. Thanks for replies!
Short Post
#1355 posted by Preach on 2014/06/18 09:44:50
I promised last week I'd put up an attempt to explain the way the origin key works for brush-based entities. Here's that post:
http://tomeofpreach.wordpress.com/2014/06/18/origin-of-the-entities/
Coming up next: using a nosave variable to (among other things) detect when the engine loads a saved game and run some custom QC.
Longer Post
#1356 posted by Preach on 2014/06/19 02:23:39
Here's the guide to using nosave to create a LoadGame function that runs only when the player loads a saved game.
http://tomeofpreach.wordpress.com/2014/06/19/save-game-detection/
Also bonus content on how you can create CheckExtension friendly code which allows for cross-engine save file compatibility (hint: it uses nosave again, that's the theme of the blog...)
#1357 posted by Spike on 2014/06/19 06:17:58
the noload feature:
float _foo;
will be saved, but not loaded. works with any qcc. this quirk may be useful if you wish to write the extensions the saved game previously expected, for debugging, without causing any issues later.
Aha
#1358 posted by Preach on 2014/06/19 08:28:31
So it's like the counterpart to the "private fields" trick, which creates a field mappers can't set on your entities by naming the field with a leading underscore...
#1359 posted by Lunaran on 2014/06/19 18:44:26
Quoth for instance uses it to sort out the screen tints for the custom powerups, restore stuffcmds the mapper has applied, and warn you if you load an incompatible save from an earlier version of the mod.
Really?
I've spent a long time thrashing around in qc trying to figure out how to do all of those things.
A big thank you, once again, for keeping the Quoth source closed, so that nobody can learn anything from it until revealed years later on Preach's blog.
|