Re: bug in the intinit.e file
- Posted by mattlewis (admin) Oct 08, 2010
- 1058 views
If you add this line it will fix the problem.
Argv = expand_config_options(Argv) m:map opts = cmd_parse( get_options(), { NO_VALIDATION_AFTER_FIRST_EXTRA, PAUSE_MSG, pause_msg }, Arg add ==>> if length(Argv) = 0 then Argv = getenv("eudir") end if sequence tmp_Argv = Argv Argv = Argv[1..2] & GetDefaultArgs() Argc = length(Argv)
No, it really won't for several reasons. Argv is meant to hold the command line options. The interpreter has to pick out those meant for it vs the path for your program and any arguments meant for it. Somewhere along the line, it's apparently losing all of that, which shouldn't be happening.
Furthermore, eu4.0 is able to run without EUDIR or EUINC or any environment variables. I haven't set one in a long, long time. That information can be set through eu.cfg files. So, in case EUDIR isn't set, you'll get a type check error back from getenv().
We need to know why and where the contents of Argv are being erased. What version of the code are you using? Are there any local modifications?
Matt