X Plugin Manager V2.12 : Updated 23/01/2010 *LINUX VERSION AVAILABLE*
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

Hmm, your package works fine, but when i built my own package it hangs.
I used the packager from version 1.11 and created packages either with a package definition file and manually.
Added Version, date and the web address, then choosed autosave.
Installed the package with the installer and then choose package update.
What steps did you take when creating your script package?
I used the packager from version 1.11 and created packages either with a package definition file and manually.
Added Version, date and the web address, then choosed autosave.
Installed the package with the installer and then choose package update.
What steps did you take when creating your script package?
-
Cycrow
- Moderator (Script&Mod)

- Posts: 22510
- Joined: Sun, 14. Nov 04, 23:26

ok, i've added another version that logs each set to "update.log"
http://ircwhore.co.uk/x3/scripts/XScript.rar
if u send me the log i can c where its crashing
http://ircwhore.co.uk/x3/scripts/XScript.rar
if u send me the log i can c where its crashing
-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

-
Cycrow
- Moderator (Script&Mod)

- Posts: 22510
- Joined: Sun, 14. Nov 04, 23:26

i've updated the file again, http://ircwhore.co.uk/x3/scripts/XScriptBeta.rar
im using QT TCP Sockets to connect, maybe a firewall is blocking it or something ?
im using QT TCP Sockets to connect, maybe a firewall is blocking it or something ?
-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

Hmm, if i connect with telnet home.arcor.de 80
and enter GET /Naffarin/StationTrader.dat HTTP/1.0<CR><CR> the response is a 301 MOVED permanently...but the linked url is just the same, http://home.arcor.de/Naffarin/StationTrader.dat
Do you handle 301 responses ? This one would lead into an endless loop.
and enter GET /Naffarin/StationTrader.dat HTTP/1.0<CR><CR> the response is a 301 MOVED permanently...but the linked url is just the same, http://home.arcor.de/Naffarin/StationTrader.dat
Do you handle 301 responses ? This one would lead into an endless loop.
Last edited by Naffarin on Wed, 18. Jan 06, 21:50, edited 1 time in total.
-
Cycrow
- Moderator (Script&Mod)

- Posts: 22510
- Joined: Sun, 14. Nov 04, 23:26

nope, it doesn't handle 301, althou it should have displays any data it got back fro mthe server in the log file
i could add a check to break out the read loop if it gets 301
the new version adds more to the log just b4 the read loops start, so i can tell if it even gets that fat
if it doesn't, then it getting stuck actaully sending the data
i could add a check to break out the read loop if it gets 301
the new version adds more to the log just b4 the read loops start, so i can tell if it even gets that fat
if it doesn't, then it getting stuck actaully sending the data
-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

-
Cycrow
- Moderator (Script&Mod)

- Posts: 22510
- Joined: Sun, 14. Nov 04, 23:26

ok, i've added some timeouts in the connection, so hopefully it wont break the program
http://ircwhore.co.uk/x3/scripts/XScriptBeta.rar
EDIT: made a slight mistake in the last version, updated the new one
http://ircwhore.co.uk/x3/scripts/XScriptBeta.rar
EDIT: made a slight mistake in the last version, updated the new one
-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

This one is interesting 
When i use one of the packages i made the update dialog says connecting to 192.168.04 which is the ip address of my laptop which i use for packaging. The current test was done on my main computer.
The update log still shows:
** Starting Package Update **
Connecting to home.arcor.de
** Starting Package Update **
Connecting to home.arcor.de
Now comes the really funny thing
if i make a new package on my maincomputer, install it with the script installer and then check for updates it says connecting to home.arcor.de and then switches to connecting to 192.168.0.4
If i ping home.arcor.de i get the correct ip address back. Should i be puzzled or should i be puzzled ?!?
Other than that timeouts seem to work fine...guess i should reprogram both computers with a large axe, maybe that will help
*edit* ah, the new version actually connects to the correct hostname still hangs but comes back after a minute when the timeout is gone.
When i use one of the packages i made the update dialog says connecting to 192.168.04 which is the ip address of my laptop which i use for packaging. The current test was done on my main computer.
The update log still shows:
** Starting Package Update **
Connecting to home.arcor.de
** Starting Package Update **
Connecting to home.arcor.de
Now comes the really funny thing
If i ping home.arcor.de i get the correct ip address back. Should i be puzzled or should i be puzzled ?!?
Other than that timeouts seem to work fine...guess i should reprogram both computers with a large axe, maybe that will help
*edit* ah, the new version actually connects to the correct hostname still hangs but comes back after a minute when the timeout is gone.
-
Cycrow
- Moderator (Script&Mod)

- Posts: 22510
- Joined: Sun, 14. Nov 04, 23:26

yeah, the original version i put up i left in some test code
it always uses a set host when updating, i made it a host that will cause it to time out so i could test ti
but forgot to remove it, anyways, i've updated it without this now, so the next version should work with the standard hosts
ah so at least it doesn't freeze the program indefianantly, thats a start
it always uses a set host when updating, i made it a host that will cause it to time out so i could test ti
but forgot to remove it, anyways, i've updated it without this now, so the next version should work with the standard hosts
ah so at least it doesn't freeze the program indefianantly, thats a start
-
Naffarin
- Posts: 481
- Joined: Sat, 3. Dec 05, 09:49

OK, then i'll better stop reprogramming with the big axe 
Anyway i have no idea left what makes the connection from this computer to the host so different from the one to other hosts. I can't even reproduce the problem with a faked http request via telnet if i use the full qualified URL in the request. Maybe the connection is somehow kept alive for whatever reason so the socket_read call doesn't return but that's just wild guessing.
Time to go to bed and have bad dreams about computers
Anyway i have no idea left what makes the connection from this computer to the host so different from the one to other hosts. I can't even reproduce the problem with a faked http request via telnet if i use the full qualified URL in the request. Maybe the connection is somehow kept alive for whatever reason so the socket_read call doesn't return but that's just wild guessing.
Time to go to bed and have bad dreams about computers
-
Cycrow
- Moderator (Script&Mod)

- Posts: 22510
- Joined: Sun, 14. Nov 04, 23:26

ok, hopefully most of the problems have been sorted out, i've uploaded a new beta version
it now including downloading and installing the scripts
http://ircwhore.co.uk/x3/scripts/XScriptBeta.rar
it now including downloading and installing the scripts
http://ircwhore.co.uk/x3/scripts/XScriptBeta.rar
