ScoreHero
Home | Forum | Wiki
Inbox [ Login ]Inbox [ Login ]
SearchSearch MemberlistMemberlist
ProfileProfile Log inLog in
360 HDR/ARK File Structure (NOT DLC!!!!!)
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    ScoreHero Forum Index -> Software
View previous topic :: View next topic  
Author Message
nickb611  





Joined: 23 Oct 2006
Posts: 3731
Location: Villanova, PA

PostPosted: Mon Mar 17, 2008 1:18 pm    Post subject: Reply with quote

xorloser wrote:
has anyone ever made a program which edited hdr files? (by which i mean added or removed files or swapped ordering?


By all means I am no reverse engineer, but, I do know that Guitar Wizard, a Java-executable program has the ability to Optimize Guitar Hero archives by rearranging the more important files to the end of the archive. I don't see how it could rearrange files in the archive without modifying the .HDR file as you'd like to. So, here is a link to it, hopefully it'll be of some help.
The Guitar Wizard Thread wrote:
- Optimize a GH archive (placing important files near the end so that future mods will be quicker)

http://www.scorehero.com/forum/viewtopic.php?t=17309
_________________
I don't read over my posts when I finish typing them.

Custom Guitar Hero
Back to top
View user's profile Wiki User Page Send private message XBL Gamertag: DrumHero89
xorloser  





Joined: 06 Mar 2008
Posts: 68

PostPosted: Wed Mar 19, 2008 7:25 am    Post subject: Reply with quote

After asking around it seems that no one has worked out what is up with the ordering of info inside hdr files, and everyone has had the same problems where any changes make them no longer work. This means i will have to look into it in greater depth which could take some time. So in the meantime you can get the sourcecode and sample tool for interacting easily with ark and hdr files from my website
Staff Edit: Removed. Read more here.


A quick glimpse of the result of using this tool: http://www.xorloser.com/gh2_songname_hack.jpg.
A tutorial is also enclosed taking you step by step through how to do this for Xbox360 games.

The sourcecode was designed with ease of use for the programmer in mind. This means that in just a few lines you can write an app that easily accesses these ark and hdr files. It was also designed to be efficient timewise, doing everything quickly and allowing a bunch of editing operations to be queued up but not actually written to disc until you "save" the changes. Even when the changes are saved, a file can be replaced into an ark file in a second or so depending on the size of the file. Oh and PS2 and Xbox360 files are both supported transparently by the same code.

WARNING: As I've stated the hdr file generation is not working properly yet, however the way the programmer uses the sourcecode should not change when this is fixed, so you can start designing your apps to use this code, and then when hdr generation is fixed, insert the updated files and rebuild your app and it will work.
Back to top
View user's profile Send private message
hailmatt69  





Joined: 25 Feb 2008
Posts: 23

PostPosted: Wed Mar 19, 2008 10:24 pm    Post subject: Reply with quote

Awesome, but I'm a little unclear on what this means.

Does this mean it is possible to edit the songlist succesfully, and it does work on the burn?
Is there still filesize issues?
Back to top
View user's profile Send private message
xorloser  





Joined: 06 Mar 2008
Posts: 68

PostPosted: Wed Mar 19, 2008 11:26 pm    Post subject: Reply with quote

there are still filesize issues yes. files can only be replaced with files the same size or smaller atm. as for changing the song and artist names, there is a tutorial for doing so in the rar file.
Back to top
View user's profile Send private message
devolus  





Joined: 29 Jan 2008
Posts: 37

PostPosted: Thu Mar 20, 2008 12:38 am    Post subject: Reply with quote

this sounds amazing i hope that you can give us the possibility to change finally the names of the songs for gh2 and especially customs for rock band

awesome
Back to top
View user's profile Send private message
D1CEx14  





Joined: 26 Apr 2007
Posts: 140

PostPosted: Thu Mar 20, 2008 1:16 am    Post subject: Reply with quote

xorloser how do i get the sample tool to work>?
_________________
RB Goals
5* Visions [4.75*]
FC Perfect Insanity [ ]
GS Peace Sells [X]

GH Goals
5* TTFAF [4.9*]
FC Before I Forget [ ]
FC Scream Aim Fire [ ]
Back to top
View user's profile Send private message XBL Gamertag: D1CEx14
hailmatt69  





Joined: 25 Feb 2008
Posts: 23

PostPosted: Thu Mar 20, 2008 1:30 am    Post subject: Reply with quote

D1CEx14 wrote:
xorloser how do i get the sample tool to work>?


You have to run it in the command line, if you don't know how to do that, just wait a little while for somebody to make a GUI.
Back to top
View user's profile Send private message
D1CEx14  





Joined: 26 Apr 2007
Posts: 140

PostPosted: Thu Mar 20, 2008 1:38 am    Post subject: Reply with quote

in cmd.exe?
_________________
RB Goals
5* Visions [4.75*]
FC Perfect Insanity [ ]
GS Peace Sells [X]

GH Goals
5* TTFAF [4.9*]
FC Before I Forget [ ]
FC Scream Aim Fire [ ]
Back to top
View user's profile Send private message XBL Gamertag: D1CEx14
cool--ethan  





Joined: 25 Mar 2007
Posts: 244

PostPosted: Thu Mar 20, 2008 2:51 am    Post subject: Reply with quote

D1CEx14 wrote:
in cmd.exe?

Start->Run->cmd
_________________
My Customs
Goals:
[] FC Jordan not once but twice!!!
[x] come up with a realistic goal
[x] Beat Guitar Hero III before the official release on Sunday october 28th
Back to top
View user's profile Send private message
D1CEx14  





Joined: 26 Apr 2007
Posts: 140

PostPosted: Thu Mar 20, 2008 2:53 am    Post subject: Reply with quote

cool--ethan wrote:
D1CEx14 wrote:
in cmd.exe?

Start->Run->cmd


yes i got that, but it seems as if it won't find my ark and hdr :S

EDIT: Nevermind i got it thnks guys
_________________
RB Goals
5* Visions [4.75*]
FC Perfect Insanity [ ]
GS Peace Sells [X]

GH Goals
5* TTFAF [4.9*]
FC Before I Forget [ ]
FC Scream Aim Fire [ ]
Back to top
View user's profile Send private message XBL Gamertag: D1CEx14
nickb611  





Joined: 23 Oct 2006
Posts: 3731
Location: Villanova, PA

PostPosted: Thu Mar 20, 2008 3:55 am    Post subject: Reply with quote

These NEW tools are being developed and are NOT meant for non-computer versed people. If you don't know what you're doing, we don't care. This thread will not be continually piled with garbage because people don't know how to run a program from the command line. If you don't know what you're doing, DON'T BOTHER.

That is all.
_________________
I don't read over my posts when I finish typing them.

Custom Guitar Hero
Back to top
View user's profile Wiki User Page Send private message XBL Gamertag: DrumHero89
hailmatt69  





Joined: 25 Feb 2008
Posts: 23

PostPosted: Thu Mar 20, 2008 6:59 pm    Post subject: Reply with quote

I thought I'd post some locations of commonly edited things in the locale.dtb (ui/eng/gen/locale.dtb), to save programmers the time of finding them themselves.

I think the places for these things are slightly different than the ps2 version due to the fact that Sign ins were added, and XBL content, and whatnot.

Tier Names.................: 933 - 941
Bonus Songs in Store...: 1015 - 1066
Star Power/Song Failed: 1194 - 1195
Loading tips.................: 1207 - 1305

The numbers are the nodes where it is located.
Back to top
View user's profile Send private message
xorloser  





Joined: 06 Mar 2008
Posts: 68

PostPosted: Wed Mar 26, 2008 11:52 pm    Post subject: Reply with quote

Ok ppl I've finally fixed the hdr file generation problems, it took a lot of reversing but I finally found out how it all works
This means that there are no longer any limits. A small file can be replaced with a bigger file and it all works nicely. Also any files can be removed and any files added.

You can get the updated version of ArkTool and the full sourcecode from my website www.xorloser.com.
Screenshot to show that it works

It turned out the ordering fo the info in the hdr file was very important. If not ordered correctly the game would crash. For full ordering info check the sourceode, but here is a basic overview.


The hdr file has 3 sections:

* section 1 is a string table which contains filename and dirnames. these strings are sorted by the offset of the files they represent inside the ark file.

* section 2 is an offset table where the offsets point to the start of strings in the string table (section1). the offsets are sorted by a hash calculated over the string that they point to. check the sourcecode for the hash generation algorithm and how hash collisions are handled.

* section 3 is a table of file entries. they contain the file size and offset inside the ark file as well as an index into the offset table (section2) for the dirname and filename strings. these file entries are sorted first by the dirname index, then by the filename index (when dirname indexes are equal). once again check the sourcecode for more info.


Lastly before people ask again, the included ArkTool is a command line windows app. Double clicking it in explorer will not work. This release is about providing a stable and working codebase for accessing all ark/hdr files in the same way. The idea being that others can quickly and easily make tools that qwork with ark/hdr files (hopefully a nice easy to use GUI tool). ArkTool is just a sample (albeit fully working) tool which shows how to use the sourcecode.
Back to top
View user's profile Send private message
FoG  





Joined: 16 Jun 2007
Posts: 1854
Location: Under A Bridge...

PostPosted: Thu Mar 27, 2008 12:03 am    Post subject: Reply with quote

Great job Xorloser!
_________________


[quote=/"MarkMadness/"]i actually got my china cymbal today and put it on my head and sang china hat[/quote]
My YouTube - My Twitter - My Accomplishments
[quote=/"dudextr/"][10:02:26 PM] xtr: yeah, it''''s too painful now
[10:06:12 PM] xtr: it looks like i have chlamidya[/quote]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger XBL Gamertag: Scythera
Teancum  





Joined: 25 Jun 2007
Posts: 437

PostPosted: Thu Mar 27, 2008 1:32 am    Post subject: Reply with quote

Awesome -- I'm looking forward to porting GH1 to GH2, venues and all.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    ScoreHero Forum Index -> Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 8 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Copyright © 2006-2024 ScoreHero, LLC
Terms of Use | Privacy Policy


Powered by phpBB