Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Dec 14, 2007 4:11 am   

[2.17] Package Library
 
I am having 2 problems with the package library. One is minor and can definitely wait till next year. The other will likely make it impossible for anyone to get an updated version of a package easily.

1. Minor - The Whats New field either doesn't save into the library or isn't downloaded. I wrote a fair description of the additions to my toolbox package in there and I am not seeing it when viewing the package details.

2. Crash - When downloading a package it seems to be receiving the key field of ID. The value received can clash with a currently loaded package causing a crash. I haven't fully tested a replication procedure yet, but I am guessing dl, open, dl same package again should do it.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 14, 2007 7:19 am   
 
Can you give me a procedure for (2)? I can't reproduce that. Each package has two key fields: the local key, and the server key. The server key is unique for any package uploaded to the server. The local key is generated as needed to store the package locally. If you download the same package twice, this is detected because the server key already exists in the local database, so the local database gets overwritten. That's how the Update action works to download a newer version of a package. So that should all work fine.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Dec 14, 2007 7:44 am   
 
Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Open Package Editor (CTRL-G)
4. Select File|Open from PE menu
5. Navigate to and select a package to open, I chose to test with one of my smaller ones only 9 settings in it but it was enough.
6. Click the package properties button
7. Click the Add to Package Library button
8. Do all the stuff to complete upload
9. Click Get Latest from Libray
10. Click Install for the package you just uploaded
Code:
date/time         : 2007-12-14, 02:54:54, 581ms
operating system  : Windows XP Service Pack 2 build 2600
system language   : English
system up time    : 5 days 13 hours
program up time   : 3 minutes 39 seconds
processor         : AMD Athlon(tm) Processor
physical memory   : 60/383 MB (free/total)
free disk space   : (C:) 14.05 GB
display mode      : 1024x768, 32 bit
process id        : $1338
allocated memory  : 31.58 MB
executable        : cMUD.exe
exec. date/time   : 2007-12-13 13:27
version           : 2.17.0.0
madExcept version : 3.0b
callstack crc     : $c530fde9, $cb51df2e, $cb51df2e
count             : 2
exception number  : 1
exception class   : Exception
exception message : Error saving data in background - INSERT INTO settings (id,kind,parent,pkgid,enabled,idname,options,userval,val,comment,name,subkind,valkind,opt,owner,userint,priority,flag,state) VALUES ('9','5','5','4','0','^~(Class Monk~): ~*~* (%w) is a new member of this class. ~*~*$','<opt><TrigColor>-1</TrigColor></opt>','','#CAP Channels #EXEC {%concat("#ALARM +",%random(5,10)," {class Greetings %1}")}','','^~(Class Monk~): ~*~* (%w) is a new member of this class. ~*~*$','0','0','9','5','0','6540','128','0') SQL Error: PRIMARY KEY must be unique.

Main ($13b0):
00d85cf8 +20c cMUD.exe     PkgDM             4591 +39 TPkg.Save
00bf1bba +1fe cMUD.exe     PackageServer      607 +28 TPackageServer.InstallPackage
00bf2d62 +5b6 cMUD.exe     PackageServer      753 +42 AddPackage
00bf30f0 +17c cMUD.exe     PackageServer      777 +17 ProcessNodes
00bf3301 +119 cMUD.exe     PackageServer      801 +18 TPackageServer.ProcessUpdates
00bf35ed +0e5 cMUD.exe     PackageServer      848 +11 TPackageServer.GetPackage
00c886d3 +0df cMUD.exe     PkgLibMain        1143 +15 TPkgLibF.HandleInstall
00c87e09 +0d5 cMUD.exe     PkgLibMain         998  +7 TPkgLibF.PackageViewMouseDown
004e2ab8 +038 cMUD.exe     Controls          4716  +1 TControl.MouseDown
005628f2 +14e cMUD.exe     cxControls        2715 +22 TcxControl.MouseDown
004e2b59 +091 cMUD.exe     Controls          4728  +7 TControl.DoMouseDown
004e2bbc +054 cMUD.exe     Controls          4737  +5 TControl.WMLButtonDown
00562434 +0d8 cMUD.exe     cxControls        2441 +15 TcxControl.WndProc
007b7abb +01b cMUD.exe     cxGridCustomView  4399  +2 TcxGridSite.WndProc
004e6120 +034 cMUD.exe     Controls          6237  +3 TWinControl.MainWndProc
00480398 +014 cMUD.exe     Classes          10966  +8 StdWndProc
77d4bcc7 +00a USER32.dll                              DispatchMessageA
0050b6d4 +0ac cMUD.exe     Forms             6873 +13 TApplication.ProcessMessage
0050b71b +00f cMUD.exe     Forms             6892  +1 TApplication.HandleMessage
0050b9b6 +0a6 cMUD.exe     Forms             6976 +16 TApplication.Run
00dce8f4 +088 cMUD.exe     CMUD               344 +18 initialization
7c91312f +069 ntdll.dll                               RtlUnicodeStringToAnsiString
7c812907 +0b6 kernel32.dll                            GetVersionExA
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 14, 2007 6:27 pm   
 
OK, it's crashing because the package is already open in the package editor. So when the library tries to download the new version, the database file is already in use. I can see where this can cause a problem for packages that people are actually using. Anyway, it's not a problem with the package library itself, it's a problem with trying to overwrite a package that is already loaded with a new version. Not something that will get fixed today though.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net