X Plugin Manager V2.12 : Updated 23/01/2010 *LINUX VERSION AVAILABLE*

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Rate this program

5. Excelant
1990
71%
4. Good
461
16%
3. OK
161
6%
2. Bad
23
1%
1. Terrible
83
3%
- Not really my thing
84
3%
 
Total votes: 2802

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

Post by Naffarin »

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?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

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
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

** Starting Package Update **
Connecting to home.arcor.de
Connected, Sending File Request
Requesting File


That's all in the file
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

ah, so the problem is its not receiving anything from the server

did u try my package file as well, does it do the same ?
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

Yours was working fine...it is just my dat files that cause the hang somehow...the funny thing is that i can open the file in the webbrowser
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

what about when the file doesn't exist, does it still hang ?
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

Yes, just the same hang. What connection method do you use for connecting ?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

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 ?
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

I used the mirror space from ericbab for testing and it works perfectly..says not found, if i don't upload the file and says same version if the file is available...

What i don't understand is, if it worked for you what is the difference when i connect to the host ?!?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

i really dont know y its not working

seems to be jsut that site, but only on ur computer, which doesn't really make much sense

i guess we need some more ppl testing to c if it happens for anyone else
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

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.
Last edited by Naffarin on Wed, 18. Jan 06, 21:50, edited 1 time in total.
A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ »

I kept getting host not found :o

But when I was about to submit this post it suddenly worked perfectly. :D
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

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
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

new log file says:

** Starting Package Update **
Connecting to home.arcor.de
Connected, Sending File Request
Requesting File
Send Data > Host: home.arcor.de


Finished writing to server
Request has been sent to server

as if the server doesn't answer

:?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

ok, so its not actually getting stuck anywhere in the code, but is not receiving data from the server, which is pretty weird

only thing i can do about that is maybe add a timeout and c if that can stop it from hanging
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

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 :)
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

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.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

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 :)
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

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 :)
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22510
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

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

Return to “X³: Reunion - Scripts and Modding”