gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

Technical Issues For bug reports, problem solving, and help running Japanese software.

Reply
 
Thread Tools Display Modes
  #1  
Old 2006-10-09, 05:29
Message's Avatar
Message Message is offline
Obsessive
 
Join Date: Dec 2003
Location: Netherlands
Posts: 323
Default Using archives in ONScripter

I'd like to create a new archive to store edited image files in Tsukihime, but lack a sar archive encoder to create arc1.sar. Would it be possible to use both arc.sar and whatever.nsa at the same time?

From what I understand ONS doesn't really use the arc or nsa commands anymore, but will instead automatically look for arc.sar or arc.nsa and continue in arc1.sar/arc1.nsa if it cannot find a resource, is this correct? At the very least, telling ONS to nsa does not make it unable to find a resource in arc.sar, even if the arc command is commented out in 0.txt. Does anyone know what ONS really does do to determine where to get the necessary resources?
Reply With Quote
  #2  
Old 2006-10-15, 08:25
roxfan roxfan is offline
Regular
 
Join Date: Jan 2004
Posts: 99
Default

You can always run it under Filemon and check which files it tries to open. Move the originals for maximum effect.
Reply With Quote
  #3  
Old 2006-10-17, 10:02
Message's Avatar
Message Message is offline
Obsessive
 
Join Date: Dec 2003
Location: Netherlands
Posts: 323
Default

Using the following commands in *define:
Code:
arc "arc.sar|scrunarc.dll"
nsa
having only arc.nsa (and arc1.nsa with practically the same contents) available, filemon shows ONS opening arc.nsa and arc1.nsa, then failing to open arc.sar and then loading 0.txt. It searches for arc.sar a couple of times more, but is able to load graphics from both arc.nsa and arc1.nsa.

Adding arc.sar to the directory, it's the same up to loading 0.txt, after that it only tries to read from arc.sar, not finding the graphics it needs.

Reversing the two codelines at the top has no notable effect. removing both codelines makes ONS not find anything at all. It looks like ONS automatically searches for arc.sar and arc?.nsa, but does not actually read from them until it is specifically told to do so.

What's more annoying is that, even if you tell ONS to only 'nsa' (thus, remove the 'sar' command above), it still ONLY uses arc.sar if it is available... >_>
Reply With Quote
  #4  
Old 2006-10-17, 10:18
Haeleth's Avatar
Haeleth Haeleth is offline
Ex-boss
 
Join Date: Mar 2003
Location: England
Posts: 2,106
Default

It's clear from the source that ONScripter will never read from an .nsa if a .sar is present, but it should be simple enough to modify so that it will try an .nsa if the file is not found in the .sar.

The code in question is in NsaReader.cpp. NsaReader::getFile(), NsaReader::getFileLength(), and NsaReader::open() are the three functions where there are obvious problems.
Reply With Quote
  #5  
Old 2006-10-17, 11:44
Message's Avatar
Message Message is offline
Obsessive
 
Join Date: Dec 2003
Location: Netherlands
Posts: 323
Default

Hahaha, yeah, now that I know where to look even I can see it will never work as it is now. Thanks a lot for the tip. ^^
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Letter from minami repack *.pack archives Unregistered Production & Help 2 2010-12-18 04:07
First post- Using effects in ONScripter HAXLION Production & Help 4 2009-05-01 22:43
Using SEEN documents JDF Technical Issues 4 2008-02-09 14:51
Using seen.txt Unregistered Technical Issues 2 2006-12-05 11:41
Game archives 07ChanF Technical Issues 2 2006-01-19 12:23


All times are GMT -8. The time now is 06:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2023, vBulletin Solutions, Inc.