The starthere batch files

Discussion about the development of POL's official distribution scripts.

Moderators: POL Developer, Distro Developer

Post Reply
Yukiko
Distro Developer
Posts: 2362
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

The starthere batch files

Post by Yukiko » Tue Sep 19, 2017 9:04 am

The "copy UO files" option does not overwrite existing files. I don't know if this is intentional or not but it did cause some problems after updating the UO client and recopying or trying to recopy the files over to \MUL.

Also, I think we should add an optional option to the eCompile menu that stops compilation on errors. It causes confusion currently because it does not stop on errors and the user thinks everything went swimmingly when it did not. The compile to a log file is probably OK with no stop on errors but when it is outputting to the console I think the user should have that option.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

DevGIB
Grandmaster Poster
Posts: 175
Joined: Mon Feb 06, 2006 6:12 am

Re: The starthere batch files

Post by DevGIB » Tue Sep 19, 2017 6:47 pm

My ecompile stops on errors :S

Yukiko
Distro Developer
Posts: 2362
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: The starthere batch files

Post by Yukiko » Wed Sep 20, 2017 8:32 am

Did you modify it? ;) The start here batch file has the "continue on error" switch set.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

DevGIB
Grandmaster Poster
Posts: 175
Joined: Mon Feb 06, 2006 6:12 am

Re: The starthere batch files

Post by DevGIB » Wed Sep 20, 2017 5:30 pm

Oh right, yes of course, sorry no i run my ecompile manually. i'm too lazy to use starthere :P i completely forgot what the entire post was about when replying. Changing the BAT file shouldn't be too hard though.

Yukiko
Distro Developer
Posts: 2362
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: The starthere batch files

Post by Yukiko » Wed Sep 20, 2017 6:42 pm

Yeah I run eCompile from the command line as well because I set a few switches and also because the batch file doesn't stop on errors. I think the option should be there because people might think everything was fine and it wasn't. In fact I think that is exactly what happened with a recent post. The user said he ran the compile all scripts and had no problems but when he tried to compile a script he got an error about not being able to find attributes.inc
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

User avatar
CWO
POL Expert
Posts: 1131
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: The starthere batch files

Post by CWO » Thu Sep 21, 2017 12:24 pm

I think the bat should definitely stop on errors. It's just bad practice to not stop on all errors in a production shard and most of those who will download this want an up and running "production level" shard immediately.

Yukiko
Distro Developer
Posts: 2362
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: The starthere batch files

Post by Yukiko » Thu Sep 21, 2017 3:19 pm

I agree CWO. I remember using the starthere.bat a long time ago and then finding out I was missing ECLs because of errors. That prompted me to start launching eCompile from the command line and forgo the use of the batch file for compiling. So do you think we should include an additional option in the batch file for compiling without stopping on errors? I was thinking that the option should be there but then I thought "why?". When would you ever not want a compile to stop on an error? I can't think of any reason.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

User avatar
CWO
POL Expert
Posts: 1131
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: The starthere batch files

Post by CWO » Thu Sep 21, 2017 10:03 pm

I've never skipped errors. Not even on my development and rewrite shards. Although, I never really compiled the whole shard much unless I updated a global include or upgraded POL which didn't happen too often.

Turley
POL Developer
Posts: 639
Joined: Sun Feb 05, 2006 4:45 am

Re: The starthere batch files

Post by Turley » Fri Sep 22, 2017 9:52 am

I personally always compile with:
-Au -T -D
This way I never have to think about what I have to compile depending on what I changed.
In case of em file changes I delete all ecls (or you could add a -f)
In former days I only had additionally in my editor a shortcut to compile the current file with -f -D

-b is I think never a good idea.

Turley
POL Developer
Posts: 639
Joined: Sun Feb 05, 2006 4:45 am

Re: The starthere batch files

Post by Turley » Fri Sep 22, 2017 10:01 am

Now I looked into ecompile.bat ;)
* The option "Compile updated scripts only." Doesn't do what the title suggests since it doesn't generate the dep files.
* Does someone really need such a long list of options? (See my post above I need maximum 2 ;) )

Yukiko
Distro Developer
Posts: 2362
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: The starthere batch files

Post by Yukiko » Fri Sep 22, 2017 10:08 am

I was thinking of 2 options. Compile stop on errors and compile to a log file but do not stop on errors. The last option assumes that the user is going to review the log file for problems.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

User avatar
CWO
POL Expert
Posts: 1131
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: The starthere batch files

Post by CWO » Fri Sep 22, 2017 6:20 pm

Generate a listfile too... It helps immensely when debugging scripts.

Post Reply