General > RANT
Breaking news: Internet Mode horrible, non-functional
Botsareus:
--- Quote ---Curious DB2 doesn't crash with the malformed bots.
An Error Occurred. Darwinbots cannot continue. Sorry. Subscript out of range DarwinBots 9 0.
--- End quote ---
DB is supposed to abort loading an organism if the file is corrupt.
--- Quote ---2. Miscommunication in filesize, bots are capped at 10kb. Curious DB2 doesn't crash with the malformed bots.
--- End quote ---
The error is more interesting, I have no idea yet what is the cause. But I will run DB from source code with IM and try to track it down. The only thing we can fix for now is check for a file size.
Peter, it will be even better if you actually put the file size cap back on your side. But instead of attempting to transfer half a file, ignore and delete the file completely.
How big the size limit should be is still up for debate.
Peter:
--- Quote from: Botsareus on February 19, 2014, 08:57:20 AM ---Some ideas:
1.)
I think we need another feature that moves the files from Peters (inbound, outbound) folders to internet modes (in, out) folders (set by DB in the settings, user choice)
--- End quote ---
Not sure if I get this. (inbound/outbound are the default IM folders in DB2, are they?)
Dubbing IM, PeterIM to avoid confusion.
A: DB2 IM user setting location
B: DB2 PeterIM client location
C: Server
A<-><-B-><->C
Is the role of that new DarwinbotsIM to move files between A to B?
With user config you need a second place to store bots, while keeping this location. The point of user config would be to not have any bots at that location, or am I mistaken?
If you need user configuration of folders, I guess it's necessarily to startup PeterIM with parameters or use named pipes to communicate.
--- Quote from: Botsareus on February 19, 2014, 08:57:20 AM ---This way:
A.) It should be as good as changing the file extension (which is brilliant idea nonetheless)
B.) People who use Internet mode by actually clicking the Internet mode button will be happy.
--- End quote ---
I start IM by clicking the internet button. Then I exit the IM application that pop ups.
2.)
--- Quote from: Botsareus on February 19, 2014, 08:57:20 AM ---I can tell vb6 to ignore a dbo file that is very large, that should prevent weird organisms.
Does a file get deleted server side after it is transferred? I do not want his kind of files sticking around to prevent transferring them more the one time.
--- End quote ---
Actually the current server doesn't delete it, mostly for debugging purposes. Current server is filled with 1372 organisms. After a restart the numbering starts again, first ten bots are from a earlier run then it overwrites anything that's on the server. Unless it restarts it won't send old bots, though. And then only ten old ones at the start.
--- Quote from: Botsareus on February 19, 2014, 08:57:20 AM ---3.)
I think we need to setup a testing schedule. I am in US eastern time. Also, I would love to see the source code for this thing. Both server side, and client side. Maybe I can learn something.
--- End quote ---
When it works I'll hand it to you. When you see it, you'll think that's quite simple.
What does the new DarwinbotsIM.exe do?
10kb isn't a weird filesize for organisms, is it?
Edit: client now with different extension when writing.
Botsareus:
--- Quote ---I start IM by clicking the internet button. Then I exit the IM application that pop ups.
--- End quote ---
--- Quote ---What does the new DarwinbotsIM.exe do?
--- End quote ---
All IM ever did was simply move files around. Can be useful to trick vb6 to make sure it is not trying to access a file that is used by another process simply by letting vb6 see the file only after it is moved. Imo, should be the same as changing file type without making vb6 ignore files of specific type.
--- Quote ---(inbound/outbound are the default IM folders in DB2, are they?)
--- End quote ---
The defaults are 'in' , 'out' I think. But the point is, a user can change them, then it is all screwed up. At-least current design.
--- Quote ---10kb isn't a weird filesize for organisms, is it?
--- End quote ---
That is a hard question to answer. At what point is an organism too big? 100kb?
--- Quote ---A<-><-B-><->C
Is the role of that new DarwinbotsIM to move files between A to B?
With user config you need a second place to store bots, while keeping this location. The point of user config would be to not have any bots at that location, or am I mistaken?
If you need user configuration of folders, I guess it's necessarily to startup PeterIM with parameters or use named pipes to communicate.
--- End quote ---
Yes correct, the simple way is to have it except command line that is already in place. The command line reads
--- Code: ---''-in "C:\in" -out "C:\out" -name Newbie 5676 -pid 4404
--- End code ---
I have no idea about python support of command line.
Also, if we use your approach instead of what I propose above. I'll have to go mod the IM teleporters to ignore a file type.
Botsareus:
P.S. I guess in proper programming jargon "command line" means "parameters" :P
Peter:
Certainly python supports arguments!
--- Quote from: MysticalDumpling on February 18, 2014, 07:47:58 PM ---Oh shoot. I hoped that IM actually was working... :O
--- End quote ---
Gonna clarify on how the simple IM should work.
Server keeps a record of ten files. (more on disk, but these are ignored)
Client connects, for each file it sends it gets the oldest in the list back. It goes to a max of 10 send/received, then it disconnects.
When you connect you shouldn't get back files you send at the same connection. If no one connects before your next connection you'll receive the bots you send the time before.
If the server is empty(no clients)and you're the only client. First it gives you 10 bots from the last leaver, after that it just fills your inbound with your outbound.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version