Prince of Persia
Prince of Persia community forum
 
  Princed Project  •  Forum Index  •  FAQ  •  Search  

It is currently September 10th, 2010, 5:23 pm




Post new topic Reply to topic  [ 8 posts ] 
 PR (Princed Resources) Executor Version 2.1! 
Author Message
 Post subject: PR (Princed Resources) Executor Version 2.1!
PostPosted: August 6th, 2009, 4:45 am 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
Grab it on butchered website! 8)

http://www.butchered.xpg.com.br/

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.0
PostPosted: March 13th, 2010, 11:54 pm 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
News 2010-03-13

PR (Princed Resources) Front-End Version 2.0 beta DLL version available!!!

- Now you don't need to put a valid PR.EXE file in the main executable path... just get the zip file, unpack it to a folder and you will have three files, PRFend.exe, pr.dll and resources.xml

- DLL was built from the PR Unofficial Fix version available on David's website

- Like CusPop Executable it now has the option to save the settings and load the settings with the new *.PFS (Princed Front-End Settings File) files and it reminds the previous settings as it writes a file named "PRFend.pfs" in the main executable path like Custom Pop Executable 2.0 does with a file named "CusPop.cps".

Curently in Beta testing... because of the following

1 - I need people to test it. I will wait until the next week, after 2010-03-20 I will take out the "beta" text and release it even if I don't receive any replies in this topic... as looks like the people here aren't posting so often.

2 - Optimize XML File (Disabled file Menu option)

In "main.c" file I need to implement this to the project but I don't know if I will implement it... it will depend of my time. I mean... It's not hard to implement because all functions of PR are exported and that "tTAg" I know the specs of that structure.

Code:
if (optimizeXmlFile) { /* special case optimize */
      tTag* tree;
      tree=xmlParseFile(optimizeXmlFile,&result);
      if (result==PR_RESULT_SUCCESS) {
         if (tree) xmlOptimizeCommonFactor(tree->child);
         resourceTreeFixInheritances(&tree);
         result=xmlGenerateFile(optimizeXmlFile,tree);
         freeTagStructure(tree);
      }


3 - Set Compression Level Check Box and SpinEdit

Not fully functional... I need to implement properly the function setCompressionLevel found on "image16.c"

About my DLL...

It was built using MinGW Compiler because it is easy to port and it is very easy to build DLL's using MinGW, you don't need to declare the exports/imports, just follow this guide at MinGW website and voilá, you have all the functions exported. ;-)

I just got the Makefile and edited it with the following information

Code:
dll:  $(LIBOBJ)
   $(MAKEDIR) bin
   $(INFO) Making dynamic library...
   $(CC) $(OPTIONS) -o bin/pr.dll $(LIBOBJ) -Llibc -shared -dynamic --no-undefined --enable-runtime-pseudo-reloc
   $(INFO) DLL successfully compiled
   $(INFO)
   $(INFO) Please read readme.coders.txt and pr.h for interfaces
   $(INFO)


And at "#command options"

Code:
.PHONY: clean cleanxml build all libs dll


You can get a good DLL Exporter Viewer or just create one with your favorite programming language (in my case Delphi Object Pascal) ;-)

So... what are you waiting for?

Go get it on Butchered website or click my signature below.

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.0
PostPosted: March 14th, 2010, 5:44 am 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
As this is a Beta version... so don't expect all the things will be allright.

There are some bugs when importing Dat files and some options are wrong... in fact the checkbox that control the SetCompressionLevel is wrong... it needs to be enabled when importing DAT files, not exporting them, just a little programming fault. ;-)

And I wrote parts of the importing code wrong... In fact it needs to check against the resulting dirs of the importing directory, not the DAT files... another programming fault.

Here are the good news:

- setCompressionLevel is fully working now. ;-)
- OptimizeXMLFile is working too with a minor bug I hope will be fixed soon.

And I think probably many of the members here are thinking the following: What this brazilian dude is doing here after 7 months out... Is he crazy? Is he out of mind? Nooo!!!! LOL

Let me explain... I'm on vacation... Working on these projects take time... for example... creating CusPOP took me about one month back in 2007 while I was a member of POPUW... in August 2009 I decided to return to Princed.org but in that time I hadn't time... and now I have time so hence the reason I released the AWESOME CusPOP 2.0 and now I'm releasing PRFend 2.0.

In a couple of days I will release another "beta" version. Bye!

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.0
PostPosted: March 16th, 2010, 12:59 am 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
News 2010-03-13

PR Front-End renamed to PR Executor as it is not a Front-End anymore... now it is an EXECUTOR!!! ;-)

Just get the file "pr20.zip" at Butchered website and now you will have three files. "PRExec.exe", "pr.dll" and "resources.xml"

Two little advices:

1 - Please read the new "PR Exec Help" - Menu Help or hit F1.

2 - Due the fact I couldn't find and close the file handle of the function even freeing the DLL with the Windows API function called "FreeLibrary"
Code:
result=xmlGenerateFile(optimizeXmlFile,tree);

at "optimizeXmlFile" you will prompted to restart the application to close that file handle.

If the application wasn't closed you would have to use SysInternals ProcessExplorer or even Unlocker to be able to delete/move/copy/rename the optimized XML file.

And like I said before I will wait until 2010-03-20, if I don't receive any replies and no complaints about "PR Executor" I will take out the "beta" text and I will release it.

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.0
PostPosted: March 20th, 2010, 8:38 pm 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
News 2010-03-20

"PR Executor v2.0 beta" testing period is over!!! Now it became "PR Executor v2.0"!

Grab it at Butchered website!!!

If you still have problems don't hesitate about sending me a PM ;-)

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.1!
PostPosted: August 28th, 2010, 1:07 am 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
News 2010-08-27

- Added Toolbar buttons and icons for the menus like EEA I and II

Besides that... the working remains the same...

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.1!
PostPosted: August 31st, 2010, 8:46 pm 
Princed Developer

Joined: July 29th, 2009, 12:05 am
Posts: 89
Location: Brazil
Tutorial videos for exporting/importing *.DAT files.

Videos were made using CamStudio

As Youtube would screw up the quality I'm providing them through my website.

Exporting.avi (689KB)
Importing.avi (683KB)

Just click in "Iniciar Download" (Start Download).

No audio, video is DivX 5.1 codec (DX50), 780 kbps and 800x600 resolution.

Note: opr, the russian dude, asked me by PM to teach him how to export/import DAT files and he doesn't know english very well he asked me for videos.

@opr: Not all DAT files can be fully exported, I would advice you to read the PR documentation of the PR unofficial fix here (made by 'david' and used by PR Executor as PRExec is just a GUI) Try to find a good english to russian translator ;-)

_________________
CusPop Executable & Easy Events Assigner & PR Executor
Brazilian Portuguese Versions of POP & Arabian Nightmares


Offline
 Profile  
 
 Post subject: Re: PR (Princed Resources) Executor Version 2.1!
PostPosted: September 1st, 2010, 2:49 am 
Efendi

Joined: July 27th, 2010, 9:12 am
Posts: 7
thanks for video _lessons, Butch!
it helped me very good
:)


Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


 Who is online 

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  

 
Princed Project  |  Forum Index  |  FAQ  |  Search

© Copyright 2008 • Princed Project Team
Our forum is powered by phpBB that is free software too.