• Correct BAJA Command

    From MRO@VERT/BBSESINF to DesotoFireflite on Wed Dec 13 15:53:26 2017
    Re: Correct BAJA Commandã By: DesotoFireflite to All on Wed Dec 13 2017 02:06 pmãã > Need some help on a baja compare statement. I want to compare a currentã > users name (Handle) with the last entry of a file im keeping created byã > baja.ãã > I'll use me as an exampleãã > What I want is if I was the last entry "Desotofireflite" in the log fileã > called call.dat, I want it to do nothing, but if I wasn't the last entry inã > the call.dat, I want it to write to the call.dat my name. My problems is Iã > don't know how to compare a handle to the last entry of a file. My guessã > would beãã > COMPARE_ARS Handle c:\sbbs\data\call.datã > If Trueã > Goto endã > end_ifãã > FOPEN FILE O_WRONLY|O_CREAT|O_APPEND "%Jcalls.dat"ãã > :endãããnone of this code is correct and your fopen file is doing nothing.ããyou are better off doing a batchfile using the tail program and then getting anãerror lvl after using the file or grep command on a temporary file created byãtail. you will need win32 unix programs,btw.ãã17 years ago i could seek into a file and load it up into a string that youãcould read with baja but i've forgotten a lot of that shit.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From DesotoFireflite@VERT/VALHALLA to MRO on Thu Dec 14 05:53:37 2017
    Re: Correct BAJA Commandã By: MRO to DesotoFireflite on Wed Dec 13 2017 03:53 pmãã MR> none of this code is correct and your fopen file is doing nothing.ãã MR> you are better off doing a batchfile using the tail program and thenã MR> getting an error lvl after using the file or grep command on a temporaryã MR> file created by tail. you will need win32 unix programs,btw.ãã MR> 17 years ago i could seek into a file and load it up into a string thatããI think echicken gave me what I ndde to make this happen, but I really need toãtake the time to learn the js language and re do the entire baja script. It isãone of your older scripts, that has worked well for me, but I'm trying toãupdate it a bit for my system. I've been updating it through the years to doãthings I want it to do, but I just could not figure out haw to make it compareãa file entry to a result, even after reading the baja docs. Thanks for jumpingãin and replying.ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- Don't eat the yellow snow!ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã
  • From echicken@VERT/ECBBS to DesotoFireflite on Thu Dec 14 10:32:40 2017
    Re: Correct BAJA Commandã By: DesotoFireflite to MRO on Thu Dec 14 2017 05:53:37ãã De> I think echicken gave me what I ndde to make this happen, but I reallyã De> need to take the time to learn the js language and re do the entire bajaã De> script. It is one of your older scripts, that has worked well for me, butããIf your current script works and you've customized it over the years, there mayãnot be a compelling reason to redo it in JS. Could be a lot of work for littleãbenefit, taking the learning curve into account. Both languages are suitableãfor most simple BBS tasks.ããIf you want to learn JS, though, replicating one of your existing Baja modulesãin it is a good way to learn. In the long run it's a more useful language toãknow, makes a lot of tasks simpler, and enables some stuff that just can't beãdone in Baja.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From DesotoFireflite@VERT/VALHALLA to echicken on Thu Dec 14 15:26:23 2017
    Re: Correct BAJA Commandã By: echicken to DesotoFireflite on Thu Dec 14 2017 10:32 amãã ec> If your current script works and you've customized it over the years,ã ec> there may not be a compelling reason to redo it in JS. Could be a lot ofã ec> work for little benefit, taking the learning curve into account. Bothã ec> languages are suitable for most simple BBS tasks.ããI think I'm going to incorporate your fix into my present script, and get itãworking for now, as I'm pretty comfortable working with BAJA.ãã ec> If you want to learn JS, though, replicating one of your existing Bajaã ec> modules in it is a good way to learn. In the long run it's a more usefulã ec> language to know, makes a lot of tasks simpler, and enables some stuffã ec> that just can't be done in Baja.ããAs soon as I get my current script going, and working, I think your idea aboutãtrying to redo it in js will help me learn the language, and I can take my timeãdoing it. Right now, when I look at js, it just looks greek to me, at leastãwith baja, I can somewhat follow what is going on. Thanks for your help ec.ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- The truth will set you free. But first it'll piss you off.ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã
  • From Nightfox@VERT/DIGDIST to DesotoFireflite on Thu Dec 14 14:26:18 2017
    Re: Correct BAJA Commandã By: DesotoFireflite to echicken on Thu Dec 14 2017 03:26 pmãã De> As soon as I get my current script going, and working, I think your ideaã De> about trying to redo it in js will help me learn the language, and I canã De> take my time doing it. Right now, when I look at js, it just looks greekã De> to me, at least with baja, I can somewhat follow what is going on. Thanksã De> for your help ec. ããIf you do learn JavaScript, it might also help you understand other languages. ãC, Java, C#, and some other languages have a syntax that's similar toãJavaScript (although slightly different). With each language, you'd have toãlearn its own libraries for what you want to do, but as far as the syntax, it'sãsimilar.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From MRO@VERT/BBSESINF to DesotoFireflite on Thu Dec 14 17:51:31 2017
    Re: Correct BAJA Commandã By: DesotoFireflite to MRO on Thu Dec 14 2017 05:53 amãã > I think echicken gave me what I ndde to make this happen, but I really needã > to take the time to learn the js language and re do the entire baja script.ã > It is one of your older scripts, that has worked well for me, but I'm tryingã > to update it a bit for my system. I've been updating it through the years toã > do things I want it to do, but I just could not figure out haw to make itã > compare a file entry to a result, even after reading the baja docs. Thanksã > for jumping in and replying.ããããis it a last callers mod?ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From DesotoFireflite@VERT/VALHALLA to MRO on Fri Dec 15 06:45:25 2017
    Re: Correct BAJA Commandã By: MRO to DesotoFireflite on Thu Dec 14 2017 05:51 pmãã MR> is it a last callers mod?ããYes. it's the last version you had. I took it from there, and have updatedãthroughout the years. I have it now doing just about everything I want. Thisãlast mod is to keep the same user from showing up if they log on and off theãsystem alot of times in one session and fill up the screen with their nameãonly.ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- Don't eat the yellow snow!ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã
  • From MRO@VERT/BBSESINF to DesotoFireflite on Fri Dec 15 17:46:11 2017
    Re: Correct BAJA Commandã By: DesotoFireflite to MRO on Fri Dec 15 2017 06:45 amãã > Re: Correct BAJA Commandã > By: MRO to DesotoFireflite on Thu Dec 14 2017 05:51 pmãã > MR> is it a last callers mod?ãã > Yes. it's the last version you had. I took it from there, and have updatedã > throughout the years. I have it now doing just about everything I want. Thisã > last mod is to keep the same user from showing up if they log on and off theã > system alot of times in one session and fill up the screen with their nameã > only.ãããi think you can check the ARS of U_LTODAY and have it display and notãwrite to the last calls based on how many logons that day.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From DesotoFireflite@VERT/VALHALLA to MRO on Sat Dec 16 15:30:14 2017
    Re: Correct BAJA Commandã By: MRO to DesotoFireflite on Fri Dec 15 2017 05:46 pmãã >> Yes. it's the last version you had. I took it from there, and haveã >> updated throughout the years. I have it now doing just aboutã >> everything I want. This last mod is to keep the same user from showingã >> up if they log on and off the system alot of times in one session andã >> fill up the screen with their name only.ããã MR> i think you can check the ARS of U_LTODAY and have it display and notã MR> write to the last calls based on how many logons that day.ããOk, thanks, I will see if I can figure that out. ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- Old farts never die! They just smell that way...ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã
  • From MRO@VERT/BBSESINF to DesotoFireflite on Sat Dec 16 15:36:36 2017
    Re: Correct BAJA Commandã By: DesotoFireflite to MRO on Sat Dec 16 2017 03:30 pmããã > MR> i think you can check the ARS of U_LTODAY and have it display and notã > MR> write to the last calls based on how many logons that day.ãã > Ok, thanks, I will see if I can figure that out. ããããbut if you have it stop writing to the last callers, it really doesnt serve aãpurpose anymore.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From DesotoFireflite@VERT/VALHALLA to MRO on Sun Dec 17 07:24:31 2017
    Re: Correct BAJA Commandã By: MRO to DesotoFireflite on Sat Dec 16 2017 03:36 pmãã MR> but if you have it stop writing to the last callers, it really doesntã MR> serve a purpose anymore.ããMy goal, if I can manupulate it is to still write it to another file calledãdupe.dat, that way I can still track all the callers, but the same name won'tãshow to all the callers over and over again. It's still a work in progress. asãI'm having to change the structure everytime I think of things I want it to do.ãI'll post the code if I'm successful :)ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- A true friend knows who you are... But likes you anyway.ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã