Author Topic: Updating BC  (Read 5748 times)

Offline newhalo123

  • Gamer, Trekkie, Metalhead.
  • Posts: 246
  • Cookies: 211
  • Gamer, Trekkie, Metalhead.
Re: Updating BC
« Reply #60 on: June 27, 2018, 07:27:48 PM »
I was banned from BCC at one point. 24 hour ban. for i think the reasons i said.
Been a few years now, so I'm not 100% on that, lol.
"Live long, and prosper." -Leonard Nimoy 'Spock' (1931-2015)

"Why, you stuck up, half-witted, scruffy looking nerf herder! " -Carrie Fisher 'Leia' (1956-2016)

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Updating BC
« Reply #61 on: June 28, 2018, 09:46:42 PM »
youre not in the ban list...  must have been someplace else, or during that period of 2 recent years the forum lost...   :idk:
ah well no biggie...

Offline Tethys

  • -=USF=- Co-Leader
  • Posts: 256
  • Cookies: 89
Re: Updating BC
« Reply #62 on: June 29, 2018, 07:53:12 PM »
Back on topic though, Snowman program was taking way too long on my PC. Now, my PC is not slow, but it is not fast either. AMD FX-6300 3.5ghz 8gb 2133 ddr3 ram. I let it run for about 6 hours before I ended up force killing the process as it was lagging my PC super hard. It was acting like a early 2000's PC with blank windows and slowness everywhere. I could not deal with it, the machine was unusable whilst running Snowman. I will have to set up a dedicated PC to make a second attempt at this. I do have a similar machine with a similar ram size but the ram speed is lower at 1333 or 1600 ddr3 as I cant remember at the moment.

If anyone has a faster PC by all means don't let me stop you from trying to decompile stbc.exe :)

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Updating BC
« Reply #63 on: July 14, 2018, 09:31:04 PM »
If anyone has a faster PC by all means don't let me stop you from trying to decompile stbc.exe :)

I have 20GB of RAM on my system and using Snowman to decompile the STBC.exe used 18.5 of them.  :shocked:

It seems the program outputs the C++ as a massive list of text. Here's a link to the raw file in .txt format. It's a 57MB text file so it is, quite literally, a wall of text.

https://drive.google.com/open?id=1XAbEVLbTjDxa1fVlXCAXejDsTTUZfwGN

I have no idea if this is useful at all, but I did notice some script calls within the jumble. So perhaps some magic can be done by someone who knows that they are doing.

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Updating BC
« Reply #64 on: July 15, 2018, 06:36:23 AM »
you may be getting a break, vonfrank.  I dropped the hint to someone else I know, who also has done so.  since you two's decompiled sizes jibe, I can tell him he DOES have the whole thing.  may have spotted a DLL or two that's contributing to the memory leak, as well.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline Morgan

  • Moderator
  • Posts: 1340
  • Cookies: 65535
Re: Updating BC
« Reply #65 on: July 15, 2018, 11:49:51 AM »
you may be getting a break, vonfrank.  I dropped the hint to someone else I know, who also has done so.  since you two's decompiled sizes jibe, I can tell him he DOES have the whole thing.  may have spotted a DLL or two that's contributing to the memory leak, as well.
Does this mean that, having narrowed down the DLL that is contributing to the memory leak, a fix is possible?

Offline DarkSoul

  • Posts: 3
  • Cookies: 1
  • Just a ghost.
Re: Updating BC
« Reply #66 on: July 15, 2018, 12:02:24 PM »
Does this mean that, having narrowed down the DLL that is contributing to the memory leak, a fix is possible?

you may be getting a break, vonfrank.  I dropped the hint to someone else I know, who also has done so.  since you two's decompiled sizes jibe, I can tell him he DOES have the whole thing.  may have spotted a DLL or two that's contributing to the memory leak, as well.



In theory maybe. Do note the Theory
Working on project refit. hope it works out well :)

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Updating BC
« Reply #67 on: July 15, 2018, 12:04:56 PM »
possibly.  at least two potential leak makers have been spotted.  the one that got my attention is something that would throw a monkey wrench/Spanner in the works.  it's a DLL that belongs to Windows itself!  the game was run with the oldest possible compatibility level and drew absolute minimum memory.  the version necessary may be 25 years old.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline eclipse74569

  • Roger Smith of the U.S.S. Lollypop, a good ship
  • Webmaster
  • Posts: 2240
  • Cookies: 65535
Re: Updating BC
« Reply #68 on: July 16, 2018, 08:53:10 AM »
possibly.  at least two potential leak makers have been spotted.  the one that got my attention is something that would throw a monkey wrench/Spanner in the works.  it's a DLL that belongs to Windows itself!  the game was run with the oldest possible compatibility level and drew absolute minimum memory.  the version necessary may be 25 years old.

Wouldn’t that make it redundant and therefore if installed wouldn’t be used by current Windows installs?
Humankind cannot gain anything without first giving something in return, to obtain, something of equal value must be lost.  That is alchemy's first law of equivalent exchange.  In those days we really believed that to be the world's one and only truth~Alphonse Elric

Offline DarkSoul

  • Posts: 3
  • Cookies: 1
  • Just a ghost.
Re: Updating BC
« Reply #69 on: July 16, 2018, 01:22:12 PM »
Wouldn’t that make it redundant and therefore if installed wouldn’t be used by current Windows installs?

in the theory. there still enough code for it to work but it just not the original. maybe I can explain this better but I had no idea how. do note the theory  I'm still looking through the code.
Working on project refit. hope it works out well :)

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Updating BC
« Reply #70 on: July 17, 2018, 05:55:19 AM »
it's gonna take quite a while to scan the code through and find all the possibilities.  we've waited this long for a possible fix, we can hold out.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline eclipse74569

  • Roger Smith of the U.S.S. Lollypop, a good ship
  • Webmaster
  • Posts: 2240
  • Cookies: 65535
Re: Updating BC
« Reply #71 on: July 17, 2018, 04:09:22 PM »
Crossing fingers!
Humankind cannot gain anything without first giving something in return, to obtain, something of equal value must be lost.  That is alchemy's first law of equivalent exchange.  In those days we really believed that to be the world's one and only truth~Alphonse Elric

Offline Morgan

  • Moderator
  • Posts: 1340
  • Cookies: 65535
Re: Updating BC
« Reply #72 on: July 17, 2018, 10:46:57 PM »
Hell, if we can at least finally, after 17 years, crack this memory leak problem, that in and of itself would breathe a lot of life back into BC.

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Updating BC
« Reply #73 on: July 18, 2018, 01:26:05 AM »
Hell, if we can at least finally, after 17 years, crack this memory leak problem, that in and of itself would breathe a lot of life back into BC.

Only being slightly familiar with the details of the whole memory leak issue, what problems would this actually solve? Random crashes after playing the game for extended times? Crashing when too much RAM is used? Other glitches?

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Updating BC
« Reply #74 on: July 18, 2018, 05:42:35 AM »
Vonfrank: from what I've gathered so far, it appears that the particular DLL that the engine is calling for is the kind that changes and expands with every version of windows and needs to be compensated for.  however, the person doing so has yet to run the game under a typical mod load.  and this is still at the theory level as well, as another one that potentially causes trouble has been spotted as well.  I've had no updates for a couple days on progress.

please note two things: 1. the game was run in compatibility mode for Windows 95 with minimum memory draw, 2. the debugger cannot find the hardcopy version as of yet to compare coding.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline Morgan

  • Moderator
  • Posts: 1340
  • Cookies: 65535
Re: Updating BC
« Reply #75 on: July 18, 2018, 11:34:42 PM »
the game was run in compatibility mode for Windows 95 with minimum memory draw...
Checking for understanding:  Does this mean that, at least for the time being, running the game in compatibility mode for Windows 95 will provide some relief?

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Updating BC
« Reply #76 on: July 19, 2018, 05:55:50 AM »
like I said, he was running the game in stock form with no mods.  plain vanilla version, in other words.  the memory draw was only 200 some odd K at max.  logic says that the bone-stock version would or should only have a typical memory draw.  I gave him a list of the typical mod loadout for players.  my suggestion is, someone else does this as well; switch to W95 compatibility mode and check your memory usage.  I intend to do this myself upon getting my setup reactivated.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline Tethys

  • -=USF=- Co-Leader
  • Posts: 256
  • Cookies: 89
Re: Updating BC
« Reply #77 on: July 19, 2018, 07:49:12 PM »
Wow, have I been out of the loop... Cheers vonfrank for getting Snowman to work through to the end! How long (hours/days) did that take? 18.5gb WOW!! :shocked:

Good job DarkSoul finding some of the memory leaks; cookies incoming all around!

Random thought; has anyone heard of codecaves? Little dll's that can be called via null bytes within the exe? Would this be a feasible way to expand the exe without actually having to fully deconstruct it? It may be easier to call your windows dll with a codecave, $0.02 keep the change :P

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Updating BC
« Reply #78 on: July 19, 2018, 10:32:08 PM »
Wow, have I been out of the loop... Cheers vonfrank for getting Snowman to work through to the end! How long (hours/days) did that take? 18.5gb WOW!! :shocked:

It actually only took about 10 minutes or so. The RAM limit was the issue. Snowman using 18.5GB left very little for my Operating System to keep for itself, so I was worried about a crash. Fortunately not, but I dont suggest anyone with less than 20GB attempt this.

In response to everything else though, glad to see some progress is being made, even if its only preliminary so far.

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Updating BC
« Reply #79 on: July 20, 2018, 04:32:47 PM »
*grin* the person that I mentioned above was using the same program with LESS available gig also got it done.  I'll have to ask how long it took.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet