Author Topic: RELEASE: Fortune Hunters 2261 (yes!)  (Read 37545 times)

0 Members and 1 Guest are viewing this topic.

Offline crizza

  • 210
Re: RELEASE: Fortune Hunters 2261 (yes!)
Sry for bugging, but does anyone happen to have the files? The DL-link is dead :(

 

Offline Toranks

  • 24
Re: RELEASE: Fortune Hunters 2261 (yes!)
4º missions, Into the Fire, have a bug and can't load. The solution is change on FH2261_04.fs2 mission file:

Code: [Select]
$Formula: ( every-time-argument
   ( random-multiple-of
      "exp04.eff"
      "exp06.eff"
      "exp20.eff"
      "exp05.eff"
      "P_moon4"
      "P_moon4"
      "P_moon4"
   )
   ( true )
   ( modify-variable
      @bank[0]
      ( rand-multiple 0 359 )
   )
   ( modify-variable
      @heading[0]
      ( rand-multiple 0 359 )
   )
   ( modify-variable
      @Pitch[0]
      ( rand-multiple 0 359 )
   )
   ( modify-variable
      "@eff[<Default Value>]"
      <argument>
   )
   ( modify-variable
      @Size[15]
      ( rand-multiple 8 26 )
   )
)

      <argument> with "<argument>"

Code: [Select]
   ( modify-variable
      "@eff[<Default Value>]"
      "<argument>"
   )

I have no knowledge of code, I have found the solution by loading the mission in FRED, saving, and checking the changes with a text matcher

Bug report:
https://fsnebula.org/log/62c4e719e83d03e719f3407e

Quote
WARNING: "Error in mission event: "Explosions Random": Not a number.
(Bad node appears to be: <argument>)
« Last Edit: July 14, 2022, 07:49:57 pm by Toranks »

 

Offline Toranks

  • 24
Re: RELEASE: Fortune Hunters 2261 (yes!)
Same error on 6º mission, and same fix, change all <argument> with "<argument>" on FH2261_06.fs2

Code: [Select]
$Formula: ( when
   ( and
      ( not
         ( is-disabled-delay
            0
            "EAS Charlemagne"
         )
      )
      ( >
         ( mission-time )
         ( + @HarvesterGun[0] 9 )
      )
      ( are-waypoints-done-delay
         "Harvester"
         "Harvester Engines"
         0
      )
   )
   ( when-argument
      ( random-multiple-of
         "engine01"
         "engine02"
         "engine03"
         "engine04"
      )
      ( true )
      ( modify-variable
         "@Target[engine01]"
         <argument>
      )
   )
   ( when-argument
      ( random-multiple-of
         "turret03-base"
         "turret08-base"
      )
      ( = @HarvesterSide[0] 0 )
      ( modify-variable
         "@Turret[turret03-base]"
         <argument>
      )
   )
   ( when-argument
      ( random-multiple-of
         "turret13-base"
         "turret20-base"
      )
      ( = @HarvesterSide[0] 1 )
      ( modify-variable
         "@Turret[turret03-base]"
         <argument>
      )
   )
   ( every-time
      ( not
         ( is-subsystem-destroyed-delay
            "EAS Charlemagne"
            "@Target[engine01]"
            1
         )
      )
      ( fire-beam
         "Harvester"
         "@Turret[turret03-base]"
         "EAS Charlemagne"
         "@Target[engine01]"
      )
      ( modify-variable
         @HarvesterGun[0]
         ( mission-time )
      )
   )
)
« Last Edit: July 14, 2022, 07:49:15 pm by Toranks »

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: RELEASE: Fortune Hunters 2261 (yes!)
Quote
WARNING: "Error in mission event: "Explosions Random": Not a number.
(Bad node appears to be: <argument>)

Needs to be
Code: [Select]
"<argument>" if the variable is a string variable.
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline Toranks

  • 24
Re: RELEASE: Fortune Hunters 2261 (yes!)
Quote
WARNING: "Error in mission event: "Explosions Random": Not a number.
(Bad node appears to be: <argument>)

Needs to be
Code: [Select]
"<argument>" if the variable is a string variable.

Thanks, this works too

 

Offline Vidmaster

  • 211
  • Inventor of FS2 bullettime ;-)
Re: RELEASE: Fortune Hunters 2261 (yes!)
Okay, this is interesting. M4 has a super-duper hack-y SEXP to spawn explosions around the player, simulating a bigger and more exciting battle than the game's balancing (particular the capship speed) can actually visually produce. It is absolutely possible that what we did back in the day is highly illegal in newer versions of FSOpen. As I wrote in the other thread, all I can say is that it did work at some point (half a lifetime ago). I do not even remember the details of this particular function anymore, I recall only discussing how to realize this with FUBAR-BHDR.
M6 on the other hand is the assault on the Earth Alliance Base, where the Harvester is supposed to kill the engines of that carrier with its beams. I vividly remember the existance of a problematic bug in this mission but do not remember what exactly it was. Also, since I lacked the wisdom of proper versioning back in the day, there is no way to know what file you actually have. However, having an actual SEXP crash is something I do not remember, so that is that.

So, as before: Do all the changes you want, all of my TBP-work is in the community-domain. That includes fix-releases, re-releases, re-mixes, fixing the spelling errors and other stuff as long as you include the original credits.

« Last Edit: July 16, 2022, 06:19:51 am by Vidmaster »
Devoted member of the Official Karajorma Fan Club (Founded and Led by Mobius).

Does crazy Software Engineering for a living, until he finally musters the courage to start building games for real. Might never happen.

 

Offline Vidmaster

  • 211
  • Inventor of FS2 bullettime ;-)
Re: RELEASE: Fortune Hunters 2261 (yes!)
Gosh, that OP of the thread is embarrasing.
Cringeworthy.
Terrible.
I was young and stupid.

Why people play these campaigns and consider them worthwhile is beyond me.
Devoted member of the Official Karajorma Fan Club (Founded and Led by Mobius).

Does crazy Software Engineering for a living, until he finally musters the courage to start building games for real. Might never happen.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: RELEASE: Fortune Hunters 2261 (yes!)
It is absolutely possible that what we did back in the day is highly illegal in newer versions of FSOpen. As I wrote in the other thread, all I can say is that it did work at some point (half a lifetime ago). I do not even remember the details of this particular function anymore, I recall only discussing how to realize this with FUBAR-BHDR.

It is not illegal in modern FSO, it should still work if correctly implimented.

The issue here comes from a bug fix to the modify-variable SEXP that was implimented a while ago. Basically, the SEXP used to not properly distinguish between Number and String variable types if you did not double check the input. Now that should happen automatically.
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."