Duke4.net Forums: Original GAME.CON fixes - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Original GAME.CON fixes

User is offline   Forge 

  • 8,565

#31

View Postleninjableu, on 14 October 2018 - 11:56 AM, said:

Thank you for this beautiful work. I myself modified many things in this same file, compared to my project.

*bumps 2 year old thread to thank someone who hasn't been active in the forum for a year*

congratulations! you won the internet today!

This post has been edited by Forge: 14 October 2018 - 12:26 PM

0

User is offline   Firefly_Trooper 

  • 47

#32

LoL! I had not seen this detail.
0

User is offline   NightFright 

  • The Truth is in here
  • 1,018

#33

Sure. The thread was only at the bottom of the 7th page or so. Who would even dare to assume it's not recent?


This post has been edited by NightFright: 14 October 2018 - 09:59 PM

0

User is offline   Firefly_Trooper 

  • 47

#34

Indeed, it is well marked in the upper left. But with my rush and my enthusiasm, I really zapped this detail.

So I rectified: Markus had done a good job.
0

User is offline   johnnythewolf 

  • -127

#35

Just found out about this. Amazing!
0

User is offline   Lazy Dog 

  • 275

#36

View Postjohnnythewolf, on 05 March 2019 - 06:35 PM, said:

Just found out about this. Amazing!


It's true, history does repeat itself!
0

User is offline   johnnythewolf 

  • -127

#37

What?

Anyway, ever since I came to these forums, I started enjoying Duke Nukem 3D a lot more than I used to. I just wanted to show my appreciation to the author. :)
0

User is offline   NightFright 

  • The Truth is in here
  • 1,018

#38

But it's not worth necro-posting for that.
0

User is offline   Firefly_Trooper 

  • 47

#39

I have only one thing to say. We are all here on this forum to have fun. Duke 3D, it's really badass
1

User is offline   johnnythewolf 

  • -127

#40

View PostNightFright, on 06 March 2019 - 02:32 AM, said:

But it's not worth necro-posting for that.


... Sorry. :(
0

User is offline   Darkus 

  • 307

#41

Working of my fixes again. I improved most the code, (reduced the usage of temporary variables for example), fixed some things I forgot, tried to fix some things without success, and restored one major feature (see below). I'll upload the new version in some days, I cross my fingers for not breaking something in the process.


I managed to restore a 1.3D feature that allow to place JIBS# sprites in maps without having them fall and disappear. Very old maps used them.

Posted Image

Other than that, not much to say, fixed a rare Liztroop case that he could stay crouched and fire indefinitely, and something I forgot. Probably include a full changelog also.
0

User is offline   Firefly_Trooper 

  • 47

#42

This could be super effectively. This could surely help me fix my own jib problem, related to Santa Claus Boss.
0

User is offline   Darkus 

  • 307

#43

Done. Most of the code is updated, (reduced usage of temporary variables) but it should be identical as the previous versions. Got also another problem: sharks are immune to shrinker. I don't know why. Happened in previous versions also.

Otherwise, not much new:
- Restored a 1.3D feature that allow to place JIBS# sprites in maps. Very old maps used them as artwork.
- LIZTROOP: Fixed a rare case when a trooper can stay crouched and shoot indefinitely (the crouching trooper at E1L4 in the secret cave)


I also wrote a (almost) full changelog since beginning:
Spoiler


Note: since I can't edit first post, The old version is also included.


0

User is offline   Firefly_Trooper 

  • 47

#44

Great guy!

I managed to reduce the shark with the shrinker. If it helps, I can post the code.
0

User is offline   Firefly_Trooper 

  • 47

#45

I read all the fixes that you made and it seems to me that you had already done all that.
If it can be useful, I can post the file that I modified and improved myself. Maybe I made some small mistakes.
0

User is offline   Firefly_Trooper 

  • 47

#46

I also add codes that suppress blood and guts, when Duke uses shrinker and freezethrower.
0

User is online   Trooper Dan 

  • Duke Plus Developer
  • 3,834

#47

View PostDarkus, on 07 April 2019 - 05:16 AM, said:

Done. Most of the code is updated, (reduced usage of temporary variables) but it should be identical as the previous versions. Got also another problem: sharks are immune to shrinker. I don't know why. Happened in previous versions also.


I've encountered this problem in my own work, it's a harcdoded SHARK thing. Normally getting hit by SHRINKSPARK sets an actor's htextra to 0, but for sharks it doesn't. However, it still sets htpicnum, so what you can do is start the shrinking based on ifwasweapon and then reset htpicnum.
1

User is offline   Firefly_Trooper 

  • 47

#48

It would also be great to be able to steer the shark up and down, while targeting the player.
0

User is offline   Darkus 

  • 307

#49

View PostFirefly_Trooper, on 07 April 2019 - 10:41 AM, said:

It would also be great to be able to steer the shark up and down, while targeting the player.

It's possible, but my goal is to stay as close as possible to the original version.

View PostTrooper Dan, on 07 April 2019 - 09:36 AM, said:

I've encountered this problem in my own work, it's a harcdoded SHARK thing. Normally getting hit by SHRINKSPARK sets an actor's htextra to 0, but for sharks it doesn't. However, it still sets htpicnum, so what you can do is start the shrinking based on ifwasweapon and then reset htpicnum.

Thanks, I managed to solve the problem, I put this above 'ifhitweapon':

ifwasweapon SHRINKSPARK
{
  setactor[THISACTOR].htpicnum 0
  ifaction ASHARKSHRUNK break
  action ASHARKSHRUNK
  sound ACTOR_SHRINKING
  move SHARKVELS fleeenemy
  break
}


Redownload for newest version:
Attached File  fixed GAME CON.zip (59.38K)
Number of downloads: 39
1

User is offline   LeoD 

  • 524

#50

Just to make sure I understand things correctly about the original GAME.CON:
GAME.CON: In actor `ORGANTIC':
GAME.CON:3967: warning: found `else' with no `if'.
GAME.CON: In state `pigshootenemystate':
GAME.CON:5890: warning: found `else' with no `if'.

I take it that the code snippets belonging to an "else with no if" are never executed at all, right?
Do both the original DUKE3D.EXE and EDuke32 handle this in the same way?
0

User is offline   Darkus 

  • 307

#51

In ORGANTIC, there's two 'else':

  ifcount 48
    resetcount
  else
  {
    'do things'
  }
  else
    ifcount 16
    {
      'do things'
    }


And in 'pigshootenemystate', 'ifcansee' is commented out, but the 'else' part was left:

state pigshootenemystate
//  ifcansee
  {
    'do things'
  }
  else
    ai AIPIGSEEKENEMY
ends


If you un-comment 'ifcansee', it solve the problem, but the pig cop stop shooting at you when you're out of sight, which change it's from his original behavior. So yes, "else with no if", nothing is executed.

I don't think there's a difference between EDuke32 and DUKE3D.EXE, it's just that DUKE3D.EXE don't report the error.
1

User is offline   Firefly_Trooper 

  • 47

#52

Hi Darkus!

I managed to completely remove the hard coded blood (jibs6) , when a frozen enemy is destroyed.
I do not know if you wanted to do that in your work.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!
  • 5,020

#53

View PostLeoD, on 08 April 2019 - 03:38 AM, said:

Do both the original DUKE3D.EXE and EDuke32 handle this in the same way?

Obviously.
0

User is offline   LeoD 

  • 524

#54

Findings while making this work for older EDuke32 executables:
- The 2016-10-31 version needs EDuke32 r5088 or later (new "userdef" in gamevars.c).
- The 2019-04-07 version needs EDuke32 r5825 or later (first explosion causes crash).
The command in line 9632 is the culprit:
getactor[sprite[THISACTOR].owner].htg_t 8 TEMPFIX1

Apparently, r5825 does more than just "readability cleanup".

View PostFox, on 13 April 2019 - 05:18 PM, said:

Obviously.
Nothing is obvious when it comes to EDuke32, last but not least due to insufficient documentation.
1

User is online   BlitZ 

  • The artist formerly known as Trooper
  • 4,531

#55

Yeah I gotta back up LeoD here, that's a shitty reply to an earnest question.

Living rent free in Nancsi's brain since 1999.
0

User is offline   Firefly_Trooper 

  • 47

#56

View PostFirefly_Trooper, on 13 April 2019 - 04:46 PM, said:

Hi Darkus!

I managed to completely remove the hard coded blood (jibs6) , when a frozen enemy is destroyed.
I do not know if you wanted to do that in your work.


I answer to myself, which does not make sense lol.

I managed the code, but halfway. It only works for all added enemies and not the enemies of the original game. I will have to repeat tests.
0

User is offline   Firefly_Trooper 

  • 47

#57

I have a question that comes to my mind, compared to Eduke32 versions. How is it that the latest version of the beginning of April, does not support large images for Mapster32?
0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options