cRPG

cRPG => cRPG Technical problems => Topic started by: Elio on April 10, 2016, 06:45:36 pm

Title: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 06:45:36 pm
Hi guys,

I was tired to wait for a fix on cRPG Launcher so I made a minimalist tool to update cRPG mod based on c-rpg.net resource files.

visitors can't see pics , please register or login


Doesn't works yet, sorry!

(click to show/hide)

How to use it:

Download and extract the .zip to a folder of your liking.

Double click the "crpgUpdaterGUI.exe".

visitors can't see pics , please register or login


In the window that just opened you click the "..."-Button and navigate to your Mount&Blade Warband folder and press OK.
You may also directly paste the path to your Warband folder in the textbox.
Note: Not your cRPG folder, It has to be the Warband main folder.

If you want a shortcut for easier access, check the "Create Shortcut"-checkbox before pressing the Update button. If you check it, the program will automatically create a shortcut to the updater on your desktop.
NOTE: If you already have a shortcut on your desktop, this checkbox will not be visible.

visitors can't see pics , please register or login


Afterwards you simply press the "Update"-Button. A new window will open, here you press "Yes" and cRPG will start updating.

visitors can't see pics , please register or login


A message box will notify you once cRPG has been updated.

Once you press "Ok" the window will close automatically.

If you need any kind of help, or some errors occur while using the updater, don't hesitate to bring it up. Thank you :)

Thanks Switch to these instructions.

Know issues:


(click to show/hide)

(click to show/hide)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: GOBBLINKINGREATLEADER on April 10, 2016, 06:51:53 pm
Hi guys,

I was tired to wait for a fix on cRPG Launcher so I made a minimalist script to update cRPG mod based on c-rpg.net resource files.

visitors can't see pics , please register or login


How it works:
First: It requires to have cRPG installed, I mean at least the cRPG folder and version.txt file inside.

I didn't had time to make a graphical interface so the only way is to use command line or by using a shortcut with argument.

By command line :
Just supply the cRPG directory:
crpg_update.exe "X:\MountBlade Warband\Modules\cRPG"

The program will check the current version and will update required files if there is a new version.
This avoid to have to download the whole module of over 500 MB.

visitors can't see pics , please register or login


This only require access to c-rpg.net on port 80 (HTTP), no privilege required.

I mad this script with Python but I can provide a compiled/executable version.

If an admin is interested to check and approve this program before posting it here, PM-me.

This only require access to c-rpg.net on port 80 (HTTP), no privilege required.

I mad this script with Python but I can provide a compiled/executable version.

If an admin is interested to check and approve this program before posting it here, PM-me.

This only require access to c-rpg.net on port 80 (HTTP), no privilege required.

no privilege required.

fucking check it
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gurgumul on April 10, 2016, 06:56:41 pm
Elio > devs
thank mr skeltal
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 06:58:57 pm
fucking check it
I meant, this doesn't require admin privilege.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: the real god emperor on April 10, 2016, 07:01:18 pm
Sir, are you a wizard?
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gurgumul on April 10, 2016, 07:01:51 pm
I meant, this doesn't require admin privilege.
You're crossing the line.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: McKli_PL on April 10, 2016, 07:11:29 pm
hack333r!!! ban him!! :wink: :mrgreen:
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 07:15:10 pm
Sir, are you a wizard?
Nah, just a nerd.

I wanted to test some libraries and this project was the best way to test it. (hashlib (https://docs.python.org/3.0/library/hashlib.html) and urllib.request (https://docs.python.org/3.0/library/urllib.request.html))

And I love cRPG enough to spend some hours for the community.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 10, 2016, 07:15:26 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 07:23:12 pm
Ok ok,

because every program is suspect on internet..

Here the source code:

http://pastebin.com/ynMZiTVr

I just removed the input_url from c-rpg.net to avoid to make server get spammed.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 07:23:49 pm
Does it mine bitcoins at background?
Sad, really sad to read this shit.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 10, 2016, 07:29:09 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: POOPHAMMER on April 10, 2016, 07:32:24 pm
Sad, really sad to read this shit.

Actually it is, when no ranked players have to program their own workaround because of lack of attention to this mod.

http://forum.melee.org/suggestions-corner/it-is-seriously-time-to-pass-the-torch/
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 08:17:01 pm
Here the executable version:

https://www.sendspace.com/file/8bq9ys

If you know a better file hoster, feel free to duplicate it.

File: crpg_update 1.00.zip
Size: 3493275 bytes
Checksum (MD5): 041d7266ecb2bc77564d29d6f3ce18ec


To compute the checksum yourself: http://onlinemd5.com/ (http://onlinemd5.com/)

Antivirus scan result from VirusTotal:
(click to show/hide)


How to use it on command line:

visitors can't see pics , please register or login


Or simply by making a shortcut:

"X:\crpg_update.exe" "X:\Mount&Blade Warband\Modules\cRPG"


The program will requires access to c-rpg.net domain on port 80, nothing more! download2.c-rpg.net to be exact


Tested on Windows 7 Home x64.

Any feedback are welcomes.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 10, 2016, 08:46:53 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 08:49:55 pm
If you want to check if all your cRPG files are updated, just change the version into version.txt, it will checks all files and replace the ones who doesn't match.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Butan on April 10, 2016, 08:50:41 pm
Tu rox Elio, faut faire circuler la nouvelle  :wink:
Je pense malheureusement qu'on aura besoin de tes services encore quelques jours/semaines, vu la vitesse où vont les choses.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 08:53:52 pm
Tu rox elio, faut faire circuler la nouvelle  :wink:
C'est encore non-officiel, il faut attendre.

For now it's an unofficial fix, but let's hope admins/devs will give me blessing/approval.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gurgumul on April 10, 2016, 09:48:53 pm
Please make a tutorial for retarded people. When I launch the thing, a window appears for a split second, then it disappears again. I'm using Windows 8.1 x64. Through quick reflexes I managed to catch a glimpse of the window:
visitors can't see pics , please register or login
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 10, 2016, 09:58:24 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 10:04:48 pm
Please make a tutorial for retarded people. When I launch the thing, a window appears for a split second, then it disappears again. I'm using Windows 8.1 x64. Through quick reflexes I managed to catch a glimpse of the window:

You can simply create a shortcut.

Right-clic --> New --> Shortcut

And then past this by replacing X:\ and Y:x by valid directories.
"X:\crpg_update 1.00\crpg_update.exe" "Y:\Mount&Blade Warband\Modules\cRPG"

Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 10:43:00 pm
I noticed that std_banners_custom files are downloaded again by the cRPG Launcher.

It seams I don't use the goods references.

Let me know which banners are corrects/expected, please.

[1] After update, start launcher offline

or

[2] After cRPG Launcher banners update

Which banners are conforms 1) or 2) ?

Anyway you don't have to use cRPG update twice.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 10, 2016, 10:54:46 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 10, 2016, 11:30:58 pm
Tried your updater again (after crpg launcher updated banners), it downloaded banners once again and it completely removed custom banners (only native ones left).

crpg launcher downloads correct ones though, I uploaded a banner after updater broke and now I see it correctly.

Thanks, I confirm too.

The updater :
(click to show/hide)

cRPG launcher:
(click to show/hide)


If people need it I will provide a new version tomorrow or within the week even if it's not really useful since the launcher can update theses files.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 11, 2016, 12:06:24 am
OBSOLETE! CHECK ELIO'S ORIGINAL POST!


Made a simple GUI (Graphical User Interface) for less tech savvy people.

Will send it to Elio so he can upload his updater and the GUI together.

cRPG does NOT need to be installed now. Elio's tool will automatically installed the most recent version!

In the meantime you can download it seperately:
https://www.sendspace.com/file/rj174u

The GUI itself is pretty self explanatory.

You choose the folder which you downloaded from Elios link.
Then you choose your Warband-folder (Default is for the Steam-version of Warband, located on your C:/-drive) Your Warband folder, not the cRPG folder!

You can either click the "..."-Button to open a window, in which you can locate the folders, or just paste the path into the corresponding textbox.

It is not very pretty but it works.

I can hand out the source code to people who want it. Just pm me. (Written in C#; Visual Studio 2015 Community)


I am not sure whether this works on non-developer PCs, so if the tool does not launch, or some errors occur (Should pop up in a message box) please take a screenshot of that message and send it to me. If it doesn't launch at all shout at me. Cheers
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Casul on April 11, 2016, 12:19:53 am
Why are there so many IT gods around...  :shock:
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 11, 2016, 12:24:05 am
Why are there so many IT gods around...  :shock:

Cause there are only nerds playing this game.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 11, 2016, 12:34:14 am
I will make another version for which you won't even need to have cRPG installed.

Will upload shortly.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 11, 2016, 12:59:10 am
Updated

EDIT:
Sorry I kinda hijacked your thread for this Elio :D
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Yuang on April 11, 2016, 02:38:11 am
Anyway, it's a great job! You're CRPG's hero. Although I don't often play it now. Where are the devs? CRPG is a foundling.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gnjus on April 11, 2016, 02:24:50 pm
Ruke stisak - Elio Pisak.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 11, 2016, 08:54:09 pm
Ruke stisak - Elio Pisak.
Not sure which language using to translate it.

Well at least it seams to be a compliment: https://duckduckgo.com/?q=Ruke+stisak&ia=images&iax=1 (https://duckduckgo.com/?q=Ruke+stisak&ia=images&iax=1) :mrgreen:



I will fix the minor problem about banners and at the same time implement the GUI thanks to the work of Switch.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 11, 2016, 09:14:15 pm
Not sure which language using to translate it.

Well at least it seams to be a compliment: https://duckduckgo.com/?q=Ruke+stisak&ia=images&iax=1 (https://duckduckgo.com/?q=Ruke+stisak&ia=images&iax=1) :mrgreen:


Google translate says it is croatian and means shake hands :D

Though the translation of 'Pisak' would be, according to google as well, mouthpiece, which is fairly disturbing.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gurgumul on April 11, 2016, 09:23:33 pm
duckduckgo
mah nigga
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 11, 2016, 09:49:06 pm
Yeah, I'm not fan of Google & Co concept: "I will show you the results you must see and not the ones you are asking for."
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 11, 2016, 10:45:17 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Yeldur on April 11, 2016, 10:56:00 pm
I don't need to use it, but nice work! Now players can return, seeing as dev's don't appear to care.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gurgumul on April 11, 2016, 11:26:23 pm
Disabling personalization pretty much fixes the problem. Now it doesn't show me anything related to my search.
The tin foil inside me gets triggered whenever I see Google. It's not as much about what results are shown, as it is about what data Google collects about us. I know that data collection is unavoidable in the internet, my country even blatantly allows ISPs to collect private, personal data on their users. But that little difference - using websites alternative to Google - is a manifestation of disagreement to data collection. I like to keep hope alive, but it will probably only get worse, we already live in a cyberpunk dystopia if you think about it. It's just that the "dystopia" part is very subtle, almost unnoticable - and for a reason.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: pogosan on April 11, 2016, 11:46:26 pm
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gryph_Hawkshade on April 12, 2016, 06:31:17 pm
Wow, amazing work. Thank you!
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 12, 2016, 10:58:45 pm
Here a new version.

I fixed the custom banners source reference.

And thanks to Switchtense (http://forum.melee.org/index.php?action=profile;u=22983) there is now a Graphical User Interface available!

Download link:


File: cRPG update 1.02 + GUI 1.1.zip
Size: 3608298 bytes
MD5 checksum: dea3e8a38586ec8069cc699cae755c15
VirusTotal analysis result: virustotal.com/en/file/4cc0debb9 (https://www.virustotal.com/en/file/4cc0debb9529f0d2c0350d93e89ab42c606575f91d81dc9a55ae5b8a0f2c8e12/analysis/1460492962/): 0/55
Remote access required: c-rpg.net on port 80 (HTTP) (download2.c-rpg.net and autobanner.c-rpg.net subdomains)
No administrative privileges required



How to use it

Download and extract the .zip to a folder of your liking.

Double click the "crpgUpdaterGUI.exe".

visitors can't see pics , please register or login


In the window that just opened you click the "..."-Button and navigate to your Mount&Blade Warband folder and press OK.
You may also directly paste the path to your Warband folder in the textbox.
Note: Not your cRPG folder, It has to be the Warband main folder.

If you want a shortcut for easier access, check the "Create Shortcut"-checkbox before pressing the Update button. If you check it, the program will automatically create a shortcut to the updater on your desktop.
NOTE: If you already have a shortcut on your desktop, this checkbox will not be visible.

visitors can't see pics , please register or login


Afterwards you simply press the "Update"-Button. A new window will open, here you press "Yes" and cRPG will start updating.

visitors can't see pics , please register or login


A message box will notify you once cRPG has been updated.

Once you press "Ok" the window will close automatically.

If you need any kind of help, or some errors occur while using the updater, don't hesitate to bring it up. Thank you :)

Thanks Switch to these instructions.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 12, 2016, 11:03:30 pm
(click to show/hide)

Replace your original post with this as well?
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 12, 2016, 11:05:28 pm
in progress yep,

It takes longer to write in English than coding. :oops:
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 12, 2016, 11:10:31 pm
in progress yep,

It takes longer to write in English than coding. :oops:

Well all you have to do is copy the update post and replace your original post with it.

Unless you want to add a small novel =D
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 12, 2016, 11:20:05 pm
Unless you want to add a small novel =D

Done

visitors can't see pics , please register or login
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 12, 2016, 11:21:12 pm
Done

visitors can't see pics , please register or login


I totally stole that one and uploaded it on my imgur for future use!
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Yuang on April 13, 2016, 02:43:10 am
Awesome, dude! Cheers! :lol:
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: deim0z on April 13, 2016, 11:13:59 am
Thank you.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 13, 2016, 04:05:37 pm
Oh, and if anyone has any ideas about how to improve the user interface, please let me know.

Don't like the way it looks much myself, but no real idea how to make it easier to use or in general prettier.

EDIT: (Seriously please do not hesitate to shoot me a pm, can never learn enough from feedback!)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: sparkfly88 on April 14, 2016, 03:33:00 am
I havent played cRPG in a long while...and go figure when I decide to come back it seems hell has broke loose.

Here's my issue...

visitors can't see pics , please register or login
 (http://postimg.org/image/lnlygqpu5/)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Gurgumul on April 14, 2016, 03:54:09 am
I havent played cRPG in a long while...and go figure when I decide to come back it seems hell has broke loose.

Here's my issue...

visitors can't see pics , please register or login
 (http://postimg.org/image/lnlygqpu5/)
Do you have filelist.txt in cRPG folder? If not, try making the file, its contents don't matter afaik.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: sparkfly88 on April 14, 2016, 03:59:09 am
Do you have filelist.txt in cRPG folder? If not, try making the file, its contents don't matter afaik.

Yup, its in there and has contents.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Gurgumul on April 14, 2016, 04:01:59 am
Yup, its in there and has contents.
Maybe it's read only? Or you have a program running in the background that's using the file, like cRPG Launcher or Warband?
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: sparkfly88 on April 14, 2016, 04:14:10 am
Maybe it's read only? Or you have a program running in the background that's using the file, like cRPG Launcher or Warband?

File properties for the whole warband folder is set to not be read-only...
I have nothing running in the background, even after a system reboot.

lol, I'm stumped.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 14, 2016, 08:19:02 am
'Permission denied'

Just for the fun of it, try launching Elio's script with your cRPG-Path as an administrator.

Also try to back that filelist file up, rename it and then create a new filelist.txt and try again.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Elio on April 14, 2016, 08:20:47 pm
I havent played cRPG in a long while...and go figure when I decide to come back it seems hell has broke loose.

Here's my issue...

visitors can't see pics , please register or login
 (http://postimg.org/image/lnlygqpu5/)

Writing into "Program Files (x86)" & "Program Files" and system' directories in general requires administrative privileges since Windows Vista.

So your only way to allow crpg_update.exe to write into program files is launching it as administrator.

By the way that's the reason why cRPG launcher requires admin privileges.

technet.microsoft.com: Start a Command Prompt as an Administrator (https://technet.microsoft.com/en-us/library/cc947813%28v=ws.10%29.aspx)
or
techjourney.net: How to Open Elevated Command Prompt as Administrator (https://techjourney.net/how-to-open-elevated-command-prompt-as-administrator-with-admin-privileges-in-windows/)


Another solution: updating it manually

With help of GUI, create on desktop a temporary folder and then choose this folder to update/install cRPG. Or simply copy the cRPG folder from your game to the desktop.

Then you have to replace manually the cRPG folder from "Program Files (x86)\M&BW\Modules\"

Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 14, 2016, 08:41:12 pm
Writing into "Program Files (x86)" & "Program Files" and system' directories in general requires administrative privileges since Windows Vista.
I did not think about that.
I can implement a messenger that tells you that the cRPG folder does not exist, and that the user does not have admin permissions to create that folder. Though I am not sure whether that justifies an update on its own. Might wait til another thing comes up.
Unless Elio can be arsed to pack another .zip and upload it and edit his post again :D

So your only way to allow crpg_update.exe to write into program files is launching it as administrator.

By the way that's the reason why cRPG launcher requires admin privileges.

Another solution: updating it manually

With help of GUI, create on desktop a temporary folder and then choose this folder to update/install cRPG. Or simply copy the cRPG folder from your game to the desktop.

Then you have to replace manually the cRPG folder from "Program Files (x86)\M&BW\Modules\"

You do not have to create a temporary folder.
Just choose the desktop instead of your Warband path. The program will create a new folder called "Modules", and another called "cRPG" inside of it.
So you just grab that modules folder including whatever is in it, and copy it over into your Warband main directory.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Elio on April 14, 2016, 08:47:17 pm
I did not think about that.

See this link:
msdn.microsoft.com: User Account Control (https://msdn.microsoft.com/en-us/library/windows/desktop/dn742497%28v=vs.85%29.aspx)

Quote
Goals

A well designed User Account Control experience has the following goals:

    Eliminate unnecessary elevation. Users should have to elevate only to perform tasks that require administrative privileges. All other tasks should be designed to eliminate the need for elevation. Often legacy software requires administrator privileges unnecessarily by writing to the HKLM or HKCR registry sections, or the Program Files or Windows System folders.

    Be predictable. Standard users need to know which tasks require an administrator to perform or cannot be performed at all in managed environments. Administrators need to know which tasks require elevation. If they can't predict the need for elevation accurately, they are more likely to give consent for administrative tasks when they shouldn't.

    Require minimal effort. Tasks that require administrative privileges should be designed to require a single elevation. Tasks that require multiple elevations quickly become tedious.

    Revert to least privileges. Once a task that requires administrative privileges is complete, the program should revert to the least privilege state.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Elio on April 14, 2016, 08:54:07 pm
Unless Elio can be arsed to pack another .zip and upload it and edit his post again :D

Well I don't really want to force to requires admin rights if It can be avoided.

Or maybe if there is a way to query it for necessary case only.

Some installer have this functionality to query for elevating privileges, I will take a look about it.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 14, 2016, 09:06:13 pm
I could just check whether the program is being run as an admin. If yes, proceed with creating the cRPG folder.
If not, ask the user what path to install cRPG into, so the user only has to copy from there into the Warband main directory.


And maybe give an additional option to just ask for admin rights for creating the cRPG folder, though I would also like to go without requiring admin at all.
Especially since granting admin rights during execution of a program is a huge security risk and in general bad.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Gurgumul on April 14, 2016, 09:12:32 pm
Elio & Switchtense give more dev feedback in one thread than the entire Burro Battalion in all of their threads and videos.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Elio on April 14, 2016, 09:21:39 pm
@Switchtense

(click to show/hide)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 14, 2016, 09:44:22 pm
@Switchtense

(click to show/hide)

Is your script now able to create the cRPG folder?

Cause currently the GUI needs admin rights to do so. (If the Warband folder is inside the programs-folder)

Your update does not need admin rights at all.

My problem at the moment is that I can tell whether the application is run as an admin, but it is difficult to check whether, as a standard user, it is possible to write into the Warband folder, without throwing an UnauthorizedAccessException (Or whichever is used when trying to do something you need admin for)
I cannto seem to find a reliable method which lets you know whether you need admin for whatever you are about to do.

I could only check what folder the user selected, if it contains "programs" I can ask for an alternative path. But that is even more quick & dirty than it already is. A lot more than I'd like.


If the app is being run as an admin, I can just proceed whatever happens, but the case of being a standard user is giving me a headache.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 14, 2016, 09:52:27 pm
Actually, I can just go ahead and start creating the cRPG folder.

If the user does not have the rights to do so, I can just catch the exception and ask the user to choose an alternative path.

Then the same game. I try to create the folder, if it does not work, ask for another path again. (With a message saying what the problem is obviously)

Will properly test tomorrow. Gotta take admin off my windows account to properly test it. Cannot be bothered to do that tonight.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Elio on April 14, 2016, 10:24:26 pm
Is your script now able to create the cRPG folder?

I only update existing module that contains at least version.txt.

But of course I could implement the same thing you made to create/install cRPG if necessary.

(click to show/hide)

I don't have time to work on it until this week-end, if you want feel free to try a solution on your side.

visitors can't see pics , please register or login

Title: Re: cRPG updater - Temporary replacement of cRPG Launcher (new version 12 April)
Post by: Switchtense on April 14, 2016, 10:42:33 pm
Yes, I know whether the update finished successfully.

And I changed it just now.
I now just try to create the folder.
If the user is an admin, it is all good and I just start your updater and all good.

If the user is no admin, the exception is thrown when trying to create the folder.
I catch the exception and ask the user for a different path to install the game to. (User can also say 'no', then the update cancels)
If the program can create the folder in the chosen path without requiring admin, all good. Update starts and perfect.

If the new path needs admin to create a folder again, same thing as before. Thrown exception is caught. Does user want a different path? No - Cancel, Yes - Try to create folder.
(Used recursion on this one)


Will test it tomorrow
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: andreakarasho on April 17, 2016, 12:50:42 pm
Nice app!

If i had time i would write a c# app to update
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: WITCHCRAFT on April 18, 2016, 08:25:38 pm
Fantastic work Elio and Switch!

You have saved many people that would just go "eh, it won't work" and play a different game.  :)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 18, 2016, 11:08:30 pm
Fantastic work Elio and Switch!

You have saved many people that would just go "eh, it won't work" and play a different game.  :)

So basically we ruined many people's lives?
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: WITCHCRAFT on April 18, 2016, 11:39:52 pm
they were going to waste hours in front of their computer anyway, so
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Butan on April 18, 2016, 11:41:47 pm
So basically we ruined many people's lives?

Only a few, still worth it!
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Jambi on April 19, 2016, 02:48:29 am
Eh, it won't work.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 19, 2016, 08:22:16 am
Eh, it won't work.

Thanks to the very detailed explanation you provided I was able to instantly find the problem and fix it. Try again, just make sure to turn your computer off and on again first.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: _RXN_ on April 19, 2016, 11:35:52 am
Eh, it won't work.

Download cRPG update 1.02, unzip, launch crpgUpdaterGUI.exe, enter Warband path, update, close, run C-RPG launcher, play.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Jepekula on April 19, 2016, 12:27:28 pm
I think someone here has missed a joke.
(click to show/hide)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: karasu on April 19, 2016, 12:35:26 pm
Le sticky. Nice job!
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Molly on April 19, 2016, 01:46:23 pm
Edit: cRPG launcher is now fixed. 4.5.4.1 patch notes coming soon!


As most of you know, cRPG launcher is down at the moment. It's still getting worked on but it's pretty close to fixed. chadz was able to patch in our last changes which ended up being the archery and xbow balance revert changes. I'll post stats soon.

To update or download cRPG, visit this link(Thank you Elio and Switchtense):http://forum.melee.org/general-discussion/crpg-updater-temporary-replacement-of-crpg-launcher/ (http://forum.melee.org/general-discussion/crpg-updater-temporary-replacement-of-crpg-launcher/)

Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on April 19, 2016, 10:12:10 pm
Good finally,

now let's spam this thread with cat pictures until admin lock it.

But do it discreetly. :D

visitors can't see pics , please register or login


Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: sparkfly88 on April 21, 2016, 04:07:42 am
Been in the middle of moving, I come back to see if I get any replies, and BAM.

I didnt think about just doing it manually in a whole other folder.

and go figure when I do all that, I read the next page which says the regular updater is now functioning  :lol:
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 21, 2016, 07:04:50 pm
visitors can't see pics , please register or login
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on April 26, 2016, 07:49:29 pm
now let's spam this thread with cat pictures until admin lock it.

I'm taking this serious.

visitors can't see pics , please register or login
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Soulreaver on May 16, 2016, 04:49:30 pm
getting an error, updater fails as well
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Switchtense on May 25, 2016, 06:11:15 am
visitors can't see pics , please register or login
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on February 09, 2018, 10:03:54 pm
Up

I just release a new version of the updater just in case some people got trouble using the official updater.

Doesn't works yet, sorry!

(click to show/hide)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Gnjus on February 09, 2018, 10:07:35 pm
Ruke stisak - Elio Pisak.

(click to show/hide)
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Elio on February 09, 2018, 10:13:00 pm
Hum I did a mistake, it only update banners...
I fixed it too quickly, my bad..

Have to work tomorrow so I don't have time today,
sorry x_x
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: RD_Professor on February 10, 2018, 02:34:27 am
Hum I did a mistake, it only update banners...
I fixed it too quickly, my bad..

Have to work tomorrow so I don't have time today,
sorry x_x
doing the lord's work, cleaning up after my festering messes.
really though, thanks. there's still some bugs wriggling around in that launcher that I need to fix.
Title: Re: cRPG updater - Temporary replacement of cRPG Launcher
Post by: Ujio on December 28, 2019, 03:07:33 am
Hi there,

Anyone have a link for this?