View Issue Details

IDProjectCategoryView StatusLast Update
0003028FSSCPmediaVPpublic2014-06-08 07:57
Reporterwilliam Assigned Toniffiwan  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionreopened 
PlatformAll 
Product Version3.7.1 
Target Version3.7.2 
Summary0003028: Game does not run when paths are too long
DescriptionThe program aborts with the following message:

ERROR: "ERANGE: String error. Please Report. Trying to put into 128 byte buffer: *.[vV][pP]" at cfile/cfilesystem.cpp:308
Steps To Reproducecd /home/USER/wine/freespace2/drive_c/Program\ Files\ \(x86\)/GOG.com/Freespace\ 2/
./fs2_open_3.7.1 -mod MediaVPs_2014
Additional InformationMoving the "Freespace 2" directory under a shorter path allows the game to run.
TagsNo tags attached.

Activities

Echelon9

2014-04-27 07:15

developer   ~0015714

Thanks for the report william.

For now I am going to close the report, as it's not so much a wide spread bug as the absence of a particular feature. To switch the underlying string handling in the engine to support near unlimited lengths is going to be a significant piece of work, with planning and testing.

Of course, you've noticed it's hard for you to play the game with the assets in such a file location under a number of nested folders.

Can I suggest rather than running with Wine on Linux, you use the native Linux FS2Open release? There are instructions on the forums and Wiki. I believe overall you will both:

1. Not need as long a path, and
2. Enjoy the experience running the engine natively much more. There was after all a lot of hard work expensed to transition from Windows-only support.

Any problems setting up Linux, can I suggest you post on the support forums where a knowledgeable Linux user should be able to assist pretty soon.

niffiwan

2014-06-07 09:31

developer   ~0015813

Given the issues with FSO running in the default Steam location, we'd better revisit this :)

niffiwan

2014-06-07 09:33

developer   ~0015814

Proposed patch here: https://github.com/niffiwan/fs2open.github.com/commits/longer_paths

Still needs a bunch of testing.

Thread here: http://www.hard-light.net/forums/index.php?topic=87739.msg1751594

niffiwan

2014-06-08 07:57

developer   ~0015816

Fix committed to trunk@10772.

Related Changesets

fs2open: trunk r10772

2014-06-08 03:14

niffiwan


Ported: N/A

Details Diff
Raise MAX_PATH_LEN to 256 so FSO can run in long paths

Specifically avoid one issue with running FSO in the default Steam dir
Converted some magic 128/127 numbers to MAX_PATH_LEN
Convert some Int3() into more friendly errors
Stopgap measure until proper fix added with compressed VP support
Fix mantis 3028
Affected Issues
0003028
mod - /trunk/fs2_open/code/cfile/cfilesystem.cpp Diff File
mod - /trunk/fs2_open/code/cutscene/cutscenes.cpp Diff File
mod - /trunk/fs2_open/code/fred2/management.cpp Diff File
mod - /trunk/fs2_open/code/gamesnd/eventmusic.cpp Diff File
mod - /trunk/fs2_open/code/globalincs/pstypes.h Diff File
mod - /trunk/fs2_open/code/globalincs/systemvars.cpp Diff File
mod - /trunk/fs2_open/code/mission/missionload.cpp Diff File
mod - /trunk/fs2_open/code/palman/palman.cpp Diff File
mod - /trunk/fs2_open/code/parse/parselo.cpp Diff File

Issue History

Date Modified Username Field Change
2014-04-05 18:50 william New Issue
2014-04-27 07:15 Echelon9 Note Added: 0015714
2014-04-27 07:15 Echelon9 Status new => closed
2014-04-27 07:15 Echelon9 Resolution open => no change required
2014-06-07 09:31 niffiwan Assigned To => niffiwan
2014-06-07 09:31 niffiwan Note Added: 0015813
2014-06-07 09:31 niffiwan Status closed => feedback
2014-06-07 09:31 niffiwan Resolution no change required => reopened
2014-06-07 09:33 niffiwan Note Added: 0015814
2014-06-07 09:33 niffiwan Status feedback => code review
2014-06-07 09:33 niffiwan Platform Linux => All
2014-06-07 09:33 niffiwan Target Version => 3.7.2
2014-06-07 10:07 niffiwan Summary Game does not run with MediaVPs_2014 when paths are too long => Game does not run when paths are too long
2014-06-08 07:57 niffiwan Changeset attached => fs2open trunk r10772
2014-06-08 07:57 niffiwan Note Added: 0015816
2014-06-08 07:57 niffiwan Status code review => resolved