Author Topic: Possible bug in scient patch 2.0  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

Offline DrazharLn

Re: Possible bug in scient patch 2.0
« Reply #15 on: August 01, 2019, 02:26:57 PM »
Beta v2.1 installer

Edit: re-uploaded with the required changes to helpx.txt to fix the overflow error, and some other minor changes.

Edit: also put the git repo up on github: https://github.com/DrazharLn/scient-unofficial-smacx-patch
« Last Edit: August 01, 2019, 03:05:33 PM by DrazharLn »

Offline Induktio

Re: Possible bug in scient patch 2.0
« Reply #16 on: August 03, 2019, 07:38:23 PM »
So lines need to be hard-wrapped at X characters? Do we know what X is? Otherwise I guess I can just wrap them at whatever the original helpx had as its max length. (Edit the max length in the GOG helpx.txt is 121 chars, so I'll wrap them there).

It would be best to take the longest lines from the original files and use it as a limit that should never be exceeded. I'm not sure about the exact limit before the overflow occurs because I didn't trace the execution line by line. It might be even possible it varies by the file type but that is unconfirmed. Nice command line tools btw. ;)

Offline DrazharLn

Re: Possible bug in scient patch 2.0
« Reply #17 on: August 04, 2019, 06:37:21 PM »
Yup, I wrapped at 124 chars (longest line in original english helpx.txt). There are much longer lines in the French version, but whatever.

Here's the tool I ended up writing to do it.

https://github.com/DrazharLn/scient-unofficial-smacx-patch/blob/master/lineshortener.py

Anyway, 2.1 above has both sets of changes.

Offline bvanevery

  • Emperor of the Tanks
  • Thinker
  • *
  • Posts: 6370
  • €659
  • View Inventory
  • Send /Gift
  • Allows access to AC2's quiz & chess sections for 144 hours from time of use.  You can't do without Leadship  Must. have. caffeine. -Ahhhhh; good.  Premium environmentally-responsible coffee, grown with love and care by Gaian experts.  
  • Planning for the next 20 years of SMACX.
  • AC2 Hall Of Fame AC Text modder Author of at least one AAR
    • View Profile
    • Awards
Re: Possible bug in scient patch 2.0
« Reply #18 on: August 05, 2019, 03:49:14 PM »
The original French version could be bugged.  Has anyone tested it?

Offline DrazharLn

Re: Possible bug in scient patch 2.0
« Reply #19 on: August 15, 2019, 04:11:46 AM »
The original french files do not cause the crash. I haven't tried to work out why. Possibly there's just one really long line and it's not somewhere that SMAC actually tries to read from.

I have uploaded v2.1 of scient's patch to both the downloads section here and the github release page of the repo.

https://github.com/DrazharLn/scient-unofficial-smacx-patch

 

* User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
103 (32%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 314
AC2 Wiki Logo
-click pic for wik-

* Random quote

Eternity lies ahead of us, and behind. Have you drunk your fill?
~Lady Deirdre Skye 'Conversations With Planet'

* Select your theme

*
Templates: 5: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Display (default), GenericControls (default).
Sub templates: 8: init, html_above, body_above, portamx_above, main, portamx_below, body_below, html_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 45 - 1228KB. (show)
Queries used: 37.

[Show Queries]