Packing data for xxx.pak, shut down with error log "Error loading level list from data/levels.txt"

Bruce

Active member
Hello everyone,

Sorry if this similar topic has already created by someone else.
I've packed my data folder for xxx.pak file with Neo Edit Pack 2021-09-12 and also with Paxplode Pack tools,
but this pak file keeps on shutting down with error log "Error loading level list from data/levels.txt" no matter how I fixed the levels.txt.
The data and xxx.pak locations:
Openbor/paks/data
Openbor/paks/xxx.pak

It seems like the game can not locate the levels.txt file or something.
Obvious, I must be doing something wrong....

I am using the OpenBor template

----------------------------------------------------------------------------------------------------
I used to run the game for testing without packing the data folder for xxx.pak in the following locations:
Openbor/data
Openbor/paks



Levels.txt
Code:
noslowfx       1
hiscorebg     1
completebg  1
loadingbg    1 5 200 310 120 180 1
loadingbg2   1 5 200 310 120 180 3

#-------Menu placement


#Time location
timeloc   960  20  33 21  2

#-------Lifebars, icons, names, etc.

#lbarsize {w} {h} {noborder}     {type}     {orientation}     {border}     {shadow}     {graph}     {backfill}

# olbarsize = enemy's LifeBar
olbarsize 120  10      0              0          0              -300          -300          -300           -300

lbarsize  240  22      0              1             0              -300          -300          -300           -300
mpbarsize 140  16      0              1          0              -300          -300          -300           -300

p1smenu  160 1000  100 900    # {x1} {y1} {x2} {y2}
                                                    # {x1} and {y1} determines player's position
                                                    # {x2} and {y2} determines player's "Ready!" position.

p1life     60   27
p1mp       60   54
p1namej    120  26   80  20   10  10    0     # {x1}{y1} {x2}{y2} {x3}{y3} {font}
                                              # {x1}{y1} determines player's name position.
                                              # {x2}{y2} determines "Select Hero"'s position.
                                              # {x3}{y3} = "Press Start"'s position. These also sets "GAME OVER" and credits pos.
p1icon     0    0
p1lifex    5    65            # x    (example. x)
p1lifen    20   65          # lives # (example. 3)     #combine = x3
p1score    120  26   -50  -100   60 -2   0
   # p{#}score {x1}{y1} {x2}{y2} {x3}{y3} {font}
   # {x1}{y1} determines player's name position.
   # {x2}{y2} determines player's "-" position. Yes, there is "-" between name and score.
   # {x3}{y3} determines player's score position.

e1name     52   1020         # enemy's name
e1life     52   1046        # enemy's lifeBar
e1icon     5    1020        # enemy's icon


p2smenu  1750 1000  1690 900    # {x1} {y1} {x2} {y2}
                                                        # {x1} and {y1} determines player's position
                                                        # {x2} and {y2} determines player's "Ready!" position.

p2life     540   27
p2mp       540   54
p2namej    600   26   560  20   470  10    0
p2icon     480   0
p2lifex    471   65             # x    (example. x)
p2lifen    500   65   480       # lives # (example. 3)     #combine = x3
p2score    600   26   430  360   520  -2   0

e2name     532   1020         # enemy's name
e2life     532   1046        # enemy's lifeBar
e2icon     485   1020        # enemy's icon


p3smenu  580 1000  520 900          # {x1} {y1} {x2} {y2}
                                                        # {x1} and {y1} determines player's position
                                                        # {x2} and {y2} determines player's "Ready!" position.

p3life     1020   27
p3mp       1020   54
p3namej    1080   26   1040  20   970  10    0
p3icon     960    0
p3lifex    965    65            # x    (example. x)
p3lifen    980    65             # lives # (example. 3)     #combine = x3
p3score    1080   26   910 -100   1020 -2   0

e3name     1012   1020         # enemy's name
e3life     1012   1046        # enemy's lifeBar
e3icon     965    1020        # enemy's icon


p4smenu  1330 1000  1270 900    # {x1} {y1} {x2} {y2}
                                                        # {x1} and {y1} determines player's position
                                                        # {x2} and {y2} determines player's "Ready!" position.

p4life     1500  27
p4mp       1500  54
p4namej    1560  26   1520  20    1450  10    0
p4icon     1440  0
p4lifex    1445  65            # x    (example. x)
p4lifen    1460  65         # lives # (example. 3)     #combine = x3
p4score    1560  26   1390 -100   1500 -2   0

e4name     1492   1020     # enemy's name
e4life     1492   1046        # enemy's lifeBar
e4icon     1445   1020        # enemy's icon


#-------Rush Placement:

#rush{flag} {duration} {text1}         {f1} {f2}    {text2}       {f3} {f4}
rush     1         3         Hits_x        0    0      Max_Hit        1       1

#p{#}rush{x1} {y1}     {x2} {y2}          {x3} {y3}      {x4} {y4}
p1rush    60    150    140   150         -60  -140     -150  -150      #55    55    113        55
p2rush    540   150     620   150          420  -140      330  -150      #215     55     273     55
p3rush    1020  150     1100  150          900  -140      810  -150      #375     55     433     55
p4rush    1500  150     1580  150          1380 -140      1290 -150      #375     55     433     55


#----------------------------------------------------------------------------------------
set    Story
lives      3
credits    3
custfade   50
nosame     1
noshare    1
maxplayers 4
typemp     0
ifcomplete 0
Musicoverlap 1    


#-----------------------------Street1
#skipselect Dante
select data/select/char_select1.txt

branch    stage1
z    688 1051
file    data/levels/Stage1_E.txt

z    688 1051
file    data/levels/Stage1_N.txt

next

z    688 1051
file    data/levels/Stage1_UH.txt

#file    data/levels/scenes/credits/credits.txt
END

#----------------------------------------------------------------------------------------
# End of level.txt. Please do not remove this whitespace.

#----------------------------------------------------------------------------------------

Can someone please take a look at it and see what I am doing wrong?
Thank you very much for your help.
 
Openbor/paks/data
@Bruce I didn't understand this line, are you packing the data folder as a subfolder of the paks folder? Just placing the data folder directly in the OpenBOR root folder is enough to make it work.
If your game is working fine if unpacked, the problem certainly is in the pack process. It's rare but the levels.txt file may be corrupted too, try to create a fresh one and copy/paste all the content to the new one to see if it solve the problem.
 
Just placing the data folder directly in the OpenBOR root folder is enough to make it work.
This is where I normally put my data folder at (Openbor/data) , but some reasons it failed during packing over and over which makes no sense.
That's why I moved the data folder to paks directory, so it was able to complete the xxx.pak. I have no clue why it is like this...
Maybe because of that, it can not run the game as it can not locate the levels.txt

Thank you
 
it failed during packing over and over
If the pak is failing to be built you may have an issue with your files. It can be related to bad file names or special characters in some texts.
In this case I suggest checking in which file name the pak process stops, and then check all the content related to this file.
 
If the pak is failing to be built you may have an issue with your files. It can be related to bad file names or special characters in some texts.
In this case I suggest checking in which file name the pak process stops, and then check all the content related to this file.
What I meant was the makepack starts running for like less than 1 second than stops with 1kb xxx.pak file with no error code or anything.

When I move the data folder to paks, then then makepack would compile the whole data folder with the result of 2gb xx.pak file

Thank you
 
In which file the makepak stops? Or it instantly closes?

EDIT: Wait, 2gb? Is this the LNS content?
No, I stopped modifying FF LNS and started creating my own game from the Openbor template for at least 7 months now.
My game is in 1080p resolution and I have webm videos and others. I need to get rid some of stuff to make it smaller.
I just modified the makepack file with the specific data and paks paths. Now I can have the data folder inside Openbor directory, the makepack still compiles no problem.
Openbor/data
Openbor/paks


I also created a new levels.txt and copied all the contents fromt the old levels.txt, same error log... :-(
I wish the log provided me more details...

Thanks a lot
 
No, I stopped modifying FF LNS and started creating my own game from the Openbor template for at least 7 months now.
My game is in 1080p resolution and I have webm videos and others. I need to get rid some of stuff to make it smaller.
I just modified the makepack file with the specific data and paks paths. Now I can have the data folder inside Openbor directory, the makepack still compiles no problem.
Openbor/data
Openbor/paks


I also created a new levels.txt and copied all the contents fromt the old levels.txt, same error log... :-(
I wish the log provided me more details...

Thanks a lot
Can you share your game folder? It's really very strange.
What engine build are you using?
 
Can you share your game folder? It's really very strange.
What engine build are you using?
Let me try to figure it out first and also see if I have any other problems. This way you could help me look at other stuff as well as I am sure there are things to be corrected or bad coding. I have so much details of what I need to do for my game, but I have to learn how to code one by one in order to make it work. It will be a good game...

Thank you
 
Let me try to figure it out first and also see if I have any other problems. This way you could help me look at other stuff as well as I am sure there are things to be corrected or bad coding. I have so much details of what I need to do for my game, but I have to learn how to code one by one in order to make it work. It will be a good game...
I suggest splitting all the questions in separate posts, this way more people can help you. I'm only curious about the makepak issue, looks really strange.
 
I suggest splitting all the questions in separate posts, this way more people can help you. I'm only curious about the makepak issue, looks really strange.
Sorry for the late response: I have been sick and busy.
I removed the the files with xxx - Copy such as levels - Copy, Dante - Copy, and removed the not used files off the data folder.
Now the xxx.pak is working as intended.
I have no clue why those files would affect the xxx.pak...
I wish the error log was more helpful.

Thank you very much for trying to help regardless.
 
Probably because you can't have spaces on file names.
That makes more sense then since most of those extra files names have spaces in their file names although they were not used, the makepack still considers as the needed files and compiled them. I will keep a note of this to avoid later problem, thank you really appreciated for this information.

I think this information would be the answer to my problem unless someone else has a different solution.
 
Back
Top Bottom