Keyboard Shortcuts
Likes
- Tablesmith
- Messages
Search
Re: Datasets
#error
I think I have found it
In both the table and the data file I globally replaced SkillName with name and SkillValue with value. Changed nothing else. It works! So it looks as if mixed case variable names break datasets? Thanks all for your help, anyway, and I think I can move on with my project :) |
Re: Datasets
#error
Last try tonight. Table reads
%TempSkill%,
%SkillVal%,0
%SkillTable%,
%FindResult%,0
?
:Start
1,{DSCreate~SkillTable,SkillName,-,SkillValue,-1}[Next]
?
:Next
1,{DSRead~SkillTable,TravSkills}%SkillTable% [Next2]
?
:Next2
1,{DSFind~SkillTable,1,SkillName=Recon} Output returned xxxxx-1Admin-1Admin-1Animals-1Animals/Handling-1Animals/Vet-1Animals/Training-1Art-1Art/Perform-1Art/Holography-1Art/Instrument-1Art/Visual Media-1Art/Write-1Astrogation-1Athletics-1Athletics/Str-1Athletics/Dex-1Athletics/End-1Broker-1Carouse-1Deception-1Diplomat-1Drive-1Drive/Hover-1Drive/Mole-1Drive/Tracked-1Drive/Walker-1Drive/Wheeled-1Electronics-1Electronics/Comms-1Electronics/Computer-1Electronics/Remote Ops-1Electronics/Sensors-1Engineer-1Engineer/M-Drive-1Engineer/J-Drive-1Engineer/Power-1Engineer/LS-1Explosives-1Flyer-1Flyer/Airship-1Flyer/Grav-1Flyer/Ornithopter-1Flyer/Rotor-1Flyer/Wing-1Gambler-1Gun Combat-1Gun Combat/Archaic-1Gun Combat/Slug-1Gun Combat/Energy-1Gunner-1Gunner/Turret-1Gunner/Ortillery-1Gunner/Screens-1Gunner/Capital-1Heavy Weapons-1Heavy Weapons/Artillery-1Heavy Weapons/Man-Portable-1Heavy Weapons/Vehicle-1Investigate-1Jack-of-All-Trades-1Language -1Leadership-1Mechanic-1Medic-1Melee-1Melee/Unarmed-1Melee/Blade-1Melee/Bludgeon-1Melee/Natural-1Navigation-1Persuade-1Pilot-1Pilot/Small Craft-1Pilot/Spacecraft-1Pilot/Capital-1Profession-1Recon-1Science-1Seafarer-1Seafarer/Ocean-1Seafarer/Sail-1Seafarer/Sub-1Stealth-1Steward-1Streetwise-1Survival-1Tactics-1Tactics/Military-1Tactics/Naval-1Vacc Suit-1 ***ERROR on line 13 of table 'Test' - : 'Object reference not set to an instance of an object.'. *** |
Re: Datasets
#error
Even odder! If I do this
_|FindResult={DSGet~SkillTable,1,SkillName}| No error If I do this _|FindResult={DSGet~SkillTable,1,SkillName}| _%FindResult%
?Field not found Urrrmmm |
Re: Datasets
#error
On Mon, May 9, 2022 at 08:29 PM, Bruce Gulke wrote:
One thing I noticed is in your XML, you're missing the "default" record. TableSmith datasets always have the default record, defined when you called DSCreate, as the first element.I added that, thanks! It still says when I do the DSGet that the Field not found SkillName. But there it is!? BTW is this valid, to check the returned value? |FindResult={DSGet~SkillTable,1,SkillName}| Thanks ongoing! |
Re: Datasets
#error
Hi, Hugh - One thing I noticed is in your XML, you're missing the "default" record. TableSmith datasets always have the default record, defined when you called DSCreate, as the first element. Outside of that, the syntax looks right for both your calls; I was going to mention that Datasets are 1-based, not 0-based, but in my test starting at 0 appears to work. I threw together a small table to replicate what you're doing and this worked as I'd expect: /OverrideRolls 1 %SkillTable%,0 %TempSkill%,0 :Start 1,{DSCreate~SkillTable,SkillName,xxxxx,SkillValue,0} _{DSAddNR~SkillTable,SkillName,Admin,SkillValue,-1}{DSAddNR~SkillTable,SkillName,Animals,SkillValue,-1} _|TempSkill=Admin| _{DSFind~SkillTable,0,SkillName=%TempSkill%}{CR~} _|TempSkill=Lore| _{DSFind~SkillTable,0,SkillName=%TempSkill%}{CR~} _{DSGet~SkillTable,1,SkillName}{CR~} _%SkillTable%
------- Original Message ------- On Monday, May 9th, 2022 at 2:42 PM, Hugh Foster <Hugh.Foster@...> wrote: Massive progress! Seems to read the data now. So I do this |
Re: Datasets
#error
Massive progress! Seems to read the data now. So I do this
toggle quoted message
Show quoted text
? {DSFind~SkillTable,0,SkillName=%TempSkill%} ? and I get this ? ***ERROR on line 77 of table 'MgTrv2-Package-NPCs' - : 'Object reference not set to an instance of an object.'. *** If I do this ? {DSGet~SkillTable,1,SkillName} ? I get ***ERROR on line 77 of table 'MgTrv2-Package-NPCs' - Field not found in call to 'DSGet': 'SkillName'. *** The XML begins ? <data> ? <record> ? ? <SkillName>Admin</SkillName> ? ? <SkillValue>-1</SkillValue> ? </record> ? <record> ? ? <SkillName>Animals</SkillName> ? ? <SkillValue>-1</SkillValue> ? </record> ?
|
Re: Datasets
#error
Okay, if I understand you correctly¡both these lines are from the only .tab file in the project (except for a call to some names)
toggle quoted message
Show quoted text
? -- Hugh Foster hugh@... http://www.ace-dog.com Dopeler effect: The tendency of stupid ideas to seem smarter when they come at you rapidly -- ![]() Monday, May 9, 2022, 8:01:55 PM, you wrote:
|
Re: Datasets
#error
silly question are you accessing the table from the same group? I recently discovered if you try to access from outside the group you get an error.
On Monday, 9 May 2022, 19:31:22 BST, Vance <clubvance@...> wrote:
Hugh, ? DSCreate~ creates a dataset in the variable SkillTable, BUT if you haven¡¯t assigned a variable named SkillTable, it has no place to put it. ? Assign a variable like any other variable and it should be OK. ? %SkillTable%,<nul> ? Vance ? ? ? ? ? Sent from for Windows ? From: Hugh Foster
Sent: Monday, May 9, 2022 1:38 PM To: [email protected] Subject: [TableSmith] Datasets #error ? Hi all ? New here, so please be kind. Many years experience with TS but I cannot for the love of zark get my head round datasets. I know they create a typed array. But every time I try and use them, I get errors. I understand the syntax as far as it goes but really could do with an example to see where it goes and how to wrap stuff round it ? I have ? _{DSCreate~SkillTable,SkillName,-,SkillValue,-1} _{DSRead~SkillTable,TravSkills} ? and I get? ? ? ***ERROR on line 39 of table 'MgTrv2-Package-NPCs' - Variable 'SkillTable' in table 'MgTrv2-Package-NPCs' not found in call to 'DSRead'. *** ? There's a relevant file of data which I think is correct. I tried creating %SkillTable%, and got a different error ? More info is available; any help much appreciated :) ? |
Re: Datasets
#error
¿ªÔÆÌåÓýHugh, ? DSCreate~ creates a dataset in the variable SkillTable, BUT if you haven¡¯t assigned a variable named SkillTable, it has no place to put it. ? Assign a variable like any other variable and it should be OK. ? %SkillTable%,<nul> ? Vance ? ? ? ? ? Sent from for Windows ? From: Hugh Foster
Sent: Monday, May 9, 2022 1:38 PM To: [email protected] Subject: [TableSmith] Datasets #error ? Hi all ? New here, so please be kind. Many years experience with TS but I cannot for the love of zark get my head round datasets. I know they create a typed array. But every time I try and use them, I get errors. I understand the syntax as far as it goes but really could do with an example to see where it goes and how to wrap stuff round it ? I have ? _{DSCreate~SkillTable,SkillName,-,SkillValue,-1} _{DSRead~SkillTable,TravSkills} ? and I get? ? ? ***ERROR on line 39 of table 'MgTrv2-Package-NPCs' - Variable 'SkillTable' in table 'MgTrv2-Package-NPCs' not found in call to 'DSRead'. *** ? There's a relevant file of data which I think is correct. I tried creating %SkillTable%, and got a different error ? More info is available; any help much appreciated :) ? |
Datasets
#error
Hi all
? New here, so please be kind. Many years experience with TS but I cannot for the love of zark get my head round datasets. I know they create a typed array. But every time I try and use them, I get errors. I understand the syntax as far as it goes but really could do with an example to see where it goes and how to wrap stuff round it ? I have ? _{DSCreate~SkillTable,SkillName,-,SkillValue,-1} _{DSRead~SkillTable,TravSkills} ? and I get? ? ? ***ERROR on line 39 of table 'MgTrv2-Package-NPCs' - Variable 'SkillTable' in table 'MgTrv2-Package-NPCs' not found in call to 'DSRead'. *** There's a relevant file of data which I think is correct. I tried creating %SkillTable%, and got a different error ? More info is available; any help much appreciated :) |
Added Folder /Kingmaker
#file-notice
[email protected] Notification
rassilonmonk@... added folder /Kingmaker |
Re: Math problem
¿ªÔÆÌåÓýYou are awesome, thanks. ? Scott ? ? From: [email protected] <[email protected]> On Behalf Of Andrew Oswald
Sent: Wednesday, January 19, 2022 10:52 To: [email protected] Subject: Re: [TableSmith] Math problem ? The only thing I see is ? {If~%Roll2%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll2%}} ? Looks like it should be ? {If~%Roll2%<0?{Color~Red,%Roll2%}/{Color~Blue,%Roll2%}} ? Red is call Roll1 for every roll, not just 1. ? On Wed, Jan 19, 2022 at 10:39 AM <scott2of5@...> wrote:
|
Re: Math problem
The only thing I see is {If~%Roll2%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll2%}} Looks like it should be {If~%Roll2%<0?{Color~Red,%Roll2%}/{Color~Blue,%Roll2%}} Red is call Roll1 for every roll, not just 1. On Wed, Jan 19, 2022 at 10:39 AM <scott2of5@...> wrote:
|
Re: Math problem
¿ªÔÆÌåÓýFigures I see the problem. The color red does not have the right variable. Well, still, Happy New Year. ? Scott ? From: [email protected] <[email protected]> On Behalf Of scott2of5@...
Sent: Wednesday, January 19, 2022 10:39 To: [email protected] Subject: [TableSmith] Math problem ? Hey folks, ? Happy New Year. ? I am having a very odd problem with some code. The math is not working, and for some reason, sometimes a ¡®0¡¯ total comes out red. I am unsure if TS can¡¯t handle positives and negatives or if some unwanted ¡®absolute value¡¯ thing is creeping in. Does anyone have any ideas? ? ? --- %Roll1%,0 %Roll2%,0 %Roll3%,0 %Roll4%,0 %Roll5%,0 %RollT%,0 ? :Start 1,/[b/]Perversion/Chaste: /[/b/]? ??|Roll1={Dice~1d10-5}|?? {If~%Roll1%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll1%}} {CR~} _/[b/]No Value/Value Life: /[/b/] |Roll2={Dice~1d10-5}|?? {If~%Roll2%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll2%}}{CR~} _/[b/]Cruelty/Humane: /[/b/]???? ??|Roll3={Dice~1d10-5}|?? {If~%Roll3%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll3%}}{CR~} _/[b/]Revenge/Mercy: /[/b/]?????? ?|Roll4={Dice~1d10-5}|?? {If~%Roll4%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll4%}}{CR~} _/[b/]Greed/Generous: /[/b/]????? ?|Roll5={Dice~1d10-5}|?? {If~%Roll5%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll5%}}{CR~} _/[b/]Total Morality: /[/b/]????? ???|RollT={Calc~%Roll1%+%Roll2%+%Roll3%+%Roll4%+%Roll5%}|{If~%RollT%<0?{Color~Red,%RollT%}/{Color~Blue,%RollT%}}{CR~} ? [b]Perversion/Chaste: [/b] -2 ? [b]Perversion/Chaste: [/b] -4 ? Scott ? |
Math problem
¿ªÔÆÌåÓýHey folks, ? Happy New Year. ? I am having a very odd problem with some code. The math is not working, and for some reason, sometimes a ¡®0¡¯ total comes out red. I am unsure if TS can¡¯t handle positives and negatives or if some unwanted ¡®absolute value¡¯ thing is creeping in. Does anyone have any ideas? ? ? --- %Roll1%,0 %Roll2%,0 %Roll3%,0 %Roll4%,0 %Roll5%,0 %RollT%,0 ? :Start 1,/[b/]Perversion/Chaste: /[/b/]? ??|Roll1={Dice~1d10-5}|?? {If~%Roll1%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll1%}} {CR~} _/[b/]No Value/Value Life: /[/b/] |Roll2={Dice~1d10-5}|?? {If~%Roll2%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll2%}}{CR~} _/[b/]Cruelty/Humane: /[/b/]???? ??|Roll3={Dice~1d10-5}|?? {If~%Roll3%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll3%}}{CR~} _/[b/]Revenge/Mercy: /[/b/]?????? ?|Roll4={Dice~1d10-5}|?? {If~%Roll4%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll4%}}{CR~} _/[b/]Greed/Generous: /[/b/]????? ?|Roll5={Dice~1d10-5}|?? {If~%Roll5%<0?{Color~Red,%Roll1%}/{Color~Blue,%Roll5%}}{CR~} _/[b/]Total Morality: /[/b/]????? ???|RollT={Calc~%Roll1%+%Roll2%+%Roll3%+%Roll4%+%Roll5%}|{If~%RollT%<0?{Color~Red,%RollT%}/{Color~Blue,%RollT%}}{CR~} ? [b]Perversion/Chaste: [/b] -2 ? [b]Perversion/Chaste: [/b] -4 ? Scott ? |
Re: mscorlib
¿ªÔÆÌåÓýHi Val ? I keep a recent copy of the config file that I can copy/paste over the existing one for this purpose. Usually it¡¯s because TS was not shut down prior to turning off my computer (usually causing the screen location to change ¡ off screen) but I¡¯ve had this error also. ? Vance ? Sent from for Windows ? From: valminder_2
Sent: Monday, November 29, 2021 1:45 AM To: [email protected] Subject: Re: [TableSmith] mscorlib ? Ok, fixed it. ? |
Re: Registration help
Hello! Not sure which email it would have come from (I think back in February it was still GMail), but I have a log of everyone who registered. I've sent you an email (from ProtonMail) with your code. ©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\ On Monday, November 22nd, 2021 at 3:40 PM, jimmyflowers1 via groups.io <jimmyflowers1@...> wrote:
|
Registration help
Hi, I purchased Tablesmith up to a year ago. My computer recently crashed. I now have a new one and am trying to get my installation up and running again. I've searched my emails and can't find the registration key. What email address would the key have come from? (Or do you know of any other way to find the key?)
Thanks in advance! |