[EL] EvoTweak Fan Modpack v7.6! [w/auto-scripter]

Custom mods, stories, and artwork based on the Evochron / Arvoch universe.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Changed code to just run it and got a windows dialog box cannot find the .exe

Even if I put in the whole path!

Even though running as admin.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Yay fixed it!!

Added these lines to the very top of the .bat

In my case it is on my D drive

D:
cd Steam
cd steamapps
cd common
cd Evochron Legacy
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by matchbox2022 »

WhiteFang wrote:Yay fixed it!!

Added these lines to the very top of the .bat

In my case it is on my D drive

D:
cd Steam
cd steamapps
cd common
cd Evochron Legacy
Now isn't that strange.
This is kinda a big deal as it might be installing flags or mods in the wrong drive....its extra wierd that it detects files perfectly fine one moment then otherwise not.

Glad you got it running :), kinda sucks that you'd have to do that for a specific drive...I think it might have something to do with how Win10 sets up local directories...maybe defaulting to C: only.

This should be working regardless of directory as it uses relative paths and not absolute.
I'm gonna try updating the code to set local directory right at game launch.....see what happens.
There'll be an update with the nebulae tweaked to be dimmer with more green, less clutter in its background, a new music track too, a fix for the injectors (have some steam forum complaints) and hopefully a real fix for this.....ugh.
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.35 [w/pre-config launcher]

Post by matchbox2022 »

Update 7.35

Fixed injector issue
Fixed "hopefully" can't find game to launch BUT could install ModS issue.
Higher Contrast Nebula
Removed HappinNess track
Added another track instead.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

I got many not found errors with 7.35.

My possibly very wrong theory is that when the switchero.bat starts it initially (being run as admin) has authority to do stuff but some command later makes it lose authority under Windows 10?

I have not looked at most of the code but could it be related to folders being wholesale deleted, moved or copied and when that happens the permissions are changed?

If so it could mean maybe having something like a command like xcopy with a switch /k or something could fix it?

That would explain why the last version worked if I put that at the front since it was allowed to navigate there already?

Really just guessing...I am not home at the moment but will check later :)
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Well not sure but I am MASSIVELY enjoying the 7.31 modpack....wow!!

Matchbox thank you very much :)
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by matchbox2022 »

WhiteFang wrote:I got many not found errors with 7.35.
Well Crap. Through my testing in various drives / directories I got no problems.......sigh.

I thought using the variable %cd% on batch start would allow me to set another variable to change directory back to the directory where the files were originally "found" on startup.

There is ONE big flag in the code that MIGHT prove useful.
Please delete "skip.txt" which should be in the Evochron Legacy folder you installed to.

Go through the motions and when the batch shows you the directory IT SEES itself installed to...confirm it's actually the right place. If it's showing itself on the desktop or your documents folder or who knows where else then the problem would be instantly obvious.


A quick thing I can try is removing the attempt at admin rights....ill do that as I upload this patched version.....see what happens...(I don't expect much)
Are your errors occuring on starting the batch in the first place? (It would go to a black cmd prompt stating it is going to quit on you)
Or is it moreso to do with the install process itself? (Cannot find file blahblah.ogg, blahblahblah.txt, blahugh.dx, etc)
Or is it still the same old "can't find game" error on launching the game?

I removed xcopy as I thought it was causing more issues and just using plain old copy commands.

HOWEVER. Feel free to play around with the batch :P If you find something that works for EVERYONE's install (so that'd be ANY drive/partition/directory) feel free to upload the script here and I'll incorporate it with an update and credit to you too) unfortunately that means just setting YOUR directory, even if it works great, won't be a viable solution long term.

I'm off and on with internet and working on base so Im pretty inconsistent on here until sundays.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Ok the latest one 7.35 worked perfectly once I deleted the skip.txt file AND then my previous solution.

EDIT - I have rewritten this post.

I tried the BAT 3 different ways
1) as it is unedited - it runs fine the first time (I deleted skip.txt first). The second time it runs (did not try changing anything) and if I choose 0 it says game isn't here
2) edit by adding ONLY "D:" - black cmd screen saying it thinks D:/ is where the install is then dialog box OK and exits
3) edit by putting in my previous solution - all works fine.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

I get errors in both 7.31 and 7.35 that do not seem to affect the modpack working.

Like this if choosing D to go back to boring default cockpit.

Could not find c:\windows\system32\environment\land*.*

and there is nothing in the evochron legacy/environment folder that starts with "land" either.

There is however an empty directory called "environment" under c:\windows\system32....goodness I should have checked that earlier sorry.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Have confirmed if I delete the approx 7 empty directories under system32 that when I run the bat they come back again.

But no issues I can see with installing or uninstalling mods.....

Sorry I cannot be more helpful....maybe it is just my pc?
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by matchbox2022 »

geez.
I have no idea why the batch is even looking at system32\ It really shouldn't unless it's being launched there. Its interesting that deleting the folders or skip somehow resets the process to be fine, but its as if the second time it magically decides to set the "start in" directory as system32, which would explain the empty folders and general errors everywhere (and yes, nothing will work if its doing things there)

It COULD...have something to do with it being a 32 bit batch? But honestly that doesn't make a ton of sense. Might have something to do with "set local" too.

I'm going to try to update the launcher quickly with a new idea. If it's actually working "correctly" the first time, I'll make it write the directory evochron lives into skip.txt, so that the next time it runs it looks at that, and jumps to that directory if its somewhere else.

I'll throw it on here so you don't have to redownload the whole thing.

http://www.mediafire.com/file/j9ptba2h8 ... tchero.bat

Beyond this I can't think of a solution.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

I tried the new one you just posted but it still cannot find the game.

I put this in and got initially for the first time with a black cmd screen that it expects the game to be installed in the correct directory and thereafter seems to be working.

I think the cannot find land.* issue isn't one. It is trying to delete the russian cockpit which I haven't installed I guess.

D:
cd Steam
cd steamapps
cd common
cd Evochron Legacy
@echo off
if not "%1" == "max" start /MAX cmd /c %0 max & exit/b
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEXPANSION
SET startdir="D:\Steam\steamapps\common\Evochron Legacy"

I know this doesn't help....sorry.

btw I think you need to change in 3 places guages to gauges.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Maybe it is only my problem and I seem to have it working so unless someone else says it isn't working maybe just leave it?
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by matchbox2022 »

Maybe a dumb comment. But are you putting the batch IN the directory of evochron legacy? Where the game is? It cant do that itself.
Otherwise Im at a 100% loss here and hope you are a minority
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

Yes it is in the evochron directory.

I FOUND IT I THINK!!! (at work so no game access)
- https://www.codeproject.com/Tips/119828 ... ecting-cur

When you run a batch file as administrator under windows vista and 7 the current directory gets set to C:\windows\system32. This can prevent your scripts from working correctly if you use relative paths.

To fix this problem, include these two lines at the top of your .bat script:
@setlocal enableextensions - you have this one already
@cd /d "%~dp0" - I could not see this one?

I guess my always running as admin was the problem!

Edit - have deleted other stuff about using NUL
https://stackoverflow.com/questions/866 ... 36#8669636
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by matchbox2022 »

I don't know how you found that but I shall give it a try, if I see no errors on my end I'll upload it here.
If you fixed it, kudos you're getting a credit spot ;)
yeah that code was more "meant" for dealing with variables in tracking the player ;p

IT is a little strange as when I install even on my ramdrive I don't get any issues whatsoever with directories....and Im running Windows 7 so
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

I think this is the explanation - depends on your User Account Settings to be notified or not if programs are making changes to your PC
https://stackoverflow.com/questions/316 ... nt-directo

I would say we got there in the end.

I am so grateful to you to do all of this, I really am enjoying these mods.
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by matchbox2022 »

http://www.mediafire.com/file/mof2bfi5x ... 2%2529.bat

Don't thank me yet ;P this might not work.

Ok, SO , tried a few more things. Now the batch uses that code you cited which apparently changes directory to the batch...so installing properly and REMOVING skip.txt will still be important.

It also now makes a semi-ok attempt on "installing" and launching the game to see if its in system32 and fix that.

Hopefully this fixes the injector issue at the same time as I think directories given by the %cd% command could've been incorrect...also found a pretty huge syntax error.
Call it 7.37, if it works it's thanks to you. I did a limited test on my ramdrive and seems to work.
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.31 [w/pre-config launcher]

Post by WhiteFang »

I am still at work but have had a look at the bat file.

You have spelling errors with "guages" instead of "gauges" on 4 occasions - do they need fixing?
matchbox2022
Commander
Commander
Posts: 609
Joined: Fri Nov 13, 2015 3:21 pm

Re: [EL] EvoTweak Fan Modpack v7.37 [w/pre-config launcher]

Post by matchbox2022 »

nah fixed that in the real thing. doesn't matter for the patch I put on just now
WhiteFang
Lieutenant
Lieutenant
Posts: 228
Joined: Tue Jun 26, 2018 12:39 am

Re: [EL] EvoTweak Fan Modpack v7.37 [w/pre-config launcher]

Post by WhiteFang »

In the real thing you may have already fixed these also:
- you are doing some operations and using %cd%.I am no expert but is there a risk of the working directory changing doing file operations? Would it be safer to make a variable at the beginning instead?
- also %startdir% seems undefined.
User avatar
Miggy
Ensign
Ensign
Posts: 5
Joined: Fri Jul 06, 2018 4:21 pm
Location: Sunny Scotland

Re: [EL] EvoTweak Fan Modpack v7.37 [w/pre-config launcher]

Post by Miggy »

@matchbox2022
I would really like to try your FullModPacks 7.37 & Pre-Tweaker but I can't locate a download link in the first post. There is one for your version 4.3 but I can't download that either. Am I missing something? Hope you can help! :)
User avatar
Marvin
Global Moderator
Global Moderator
Posts: 13936
Joined: Wed Mar 04, 2009 5:47 am
Location: Fallon-Reno

Re: [EL] EvoTweak Fan Modpack v7.37 [w/pre-config launcher]

Post by Marvin »

Miggy wrote:@matchbox2022
I would really like to try your FullModPacks 7.37 & Pre-Tweaker....
You might want to wait until Sherlock and Dr. Watson find a solution to the batch-file problem. Looks like the problem almost solved. ;)
User avatar
Miggy
Ensign
Ensign
Posts: 5
Joined: Fri Jul 06, 2018 4:21 pm
Location: Sunny Scotland

Re: [EL] EvoTweak Fan Modpack v7.37 [w/pre-config launcher]

Post by Miggy »

Ah! I see, so the link was removed while they investigate. Thanks for the info Marvin! :)
User avatar
Marvin
Global Moderator
Global Moderator
Posts: 13936
Joined: Wed Mar 04, 2009 5:47 am
Location: Fallon-Reno

Re: [EL] EvoTweak Fan Modpack v7.37 [w/pre-config launcher]

Post by Marvin »

8) No problem. It's been a real investigative process. Great reading. Almost better than an episode of Elementary ... and nobody got killed.