Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Miloch
« on: September 29, 2009, 02:18:51 PM »

Use INNER_PATCH - changes to the work buffer aren't saved with that.
Oh, right. Don't know why I didn't think of that since I've got INNER_PATCHes all over the place already. Kind of a belaboured method, but it works I guess.

Why won't the following compile
Because you fail miserably.
Posted by: devSin
« on: September 29, 2009, 01:33:10 PM »

Why won't the following compile without "WARNING: cannot verify trigger ~GlobalORGlobal(stuff)~: Failure("cannot find an argument of the right type")"? That makes me mad.
Code: [Select]
BEGIN ~SUCKYSUCKY2DOLLA~
IF ~!HasHerpes(Protagonist)~ 0
SAY #1
IF ~GlobalORGlobal("Cock","GLOBAL","Block","GLOBAL")~ DO ~Die()~ EXIT
IF ~Global("Cock","GLOBAL",0)
Global("Block","GLOBAL",0)~ DO ~Suck()~ EXIT
END
Scripting style: PST
Posted by: the bigg
« on: September 29, 2009, 09:53:19 AM »

#1. Use INNER_PATCH - changes to the work buffer aren't saved with that.
#2. Is case-insensitive.
Posted by: Miloch
« on: September 29, 2009, 09:24:55 AM »

cough Windows 7 cough
Eh, isn't 7 just Vista 1.1?

Partition your hard drive and multiboot XP and Linux. Hell, you could probably even add those partitions to your MacBook drive (maybe not if Apple locks you out of multibooting).

Anyway, somewhat back on topic... I take it I can't do something like this:
Code: [Select]
COPY_EXISTING ~%dialog%.dlg~ ~override~
  ...
  READ_ASCII action_offset action_string (action_length)
  PATCH_IF (~%action_string%~ STRING_CONTAINS_REGEXP ~Add[Jj]ournal[Ee]ntry(\([0-9]+\),~ = 0) BEGIN
    string_ref = %\1%
    READ_STRREF string_ref journal_text
  END
So do I have to use REPLACE_EVALUATE? The problem with the latter is I don't actually want to replace anything, I just want to read the StrRef so I can later operate on that. I guess I could write the same exact thing I'm reading, but still... a "read-only" option would help.

Also, while I'm thinking about it, is STRING_CONTAINS_REGEXP case-sensitive? Doesn't seem to be from my use of it (with filenames anyway) but in any case, it doesn't seem to have an optcase variant like the others. I don't think it needs one (unless it *is* case-sensitive) - just wondering.
Posted by: cmorgan
« on: September 27, 2009, 09:44:06 AM »

Very cool. Investigating - I was about to spend a good deal of time messing about, so now more modding time for me!
Returning to topic -
cool also on the fix.
Posted by: the bigg
« on: September 27, 2009, 09:08:30 AM »

Also gitted the R_E fix.
Posted by: the bigg
« on: September 27, 2009, 08:51:36 AM »

seriously, the bigg, tell me more - I am googling it now. I can't POST, so I have 2 raptors and a storage drive that have data I want (and in general I don't want to send the machine in with my finanial data; everything is still under warrantee, so I can get someone else to tear their hair out with video/motherboard troubleshooting or replacement) - I was going to go buy a cheap shell with power supply and toss them in there to do a final backup and wipe some stuff.

You are saying keep the power connected, disengage the SATA cable, toss on a SATA>USB cable, and get the data off before sending it out?
A SATA to USB converter is a disk enclosure without the fancy shell and the out-of-this-world price - it also comes with the power cable, so yoy don't need a full PSU (NB: shop around, I can't guarantee that what I linked is the cheapest option available).
Before sending in the machine, ask if you can remove and keep the hard drives without voiding the warranty (try to get that written down).

NB: if there's hot glue on the connectors, they will likely void your warranty because you messed with the machine, so ask them to backup the files you need and hope they won't snoop around.

Quote
And you are recommending scrapping the dual-boot and going for Windows 7
Firstly, ditch Vista for Windows 7. Any program that works in Vista works in 7 anyway. However, if you have programs that run in XP but not in Vista, they won't run in 7. Either way, release date for Win7 is the 22nd of October.

If you don't have XP-only games/programs, just use the Macbook until 7 is released, and then install that.
If you have XP-only games/programs, install that on one of the raptors and don't use the storage drive in the least. When you get 7, import your XP installation as a virtual machine (VMWare allows you to run an hard disk partition as a VM, I don't know if other VM engines can).
Posted by: cmorgan
« on: September 27, 2009, 08:15:33 AM »

OT -

seriously, the bigg, tell me more - I am googling it now. I can't POST, so I have 2 raptors and a storage drive that have data I want (and in general I don't want to send the machine in with my finanial data; everything is still under warrantee, so I can get someone else to tear their hair out with video/motherboard troubleshooting or replacement) - I was going to go buy a cheap shell with power supply and toss them in there to do a final backup and wipe some stuff.

You are saying keep the power connected, disengage the SATA cable, toss on a SATA>USB cable, and get the data off before sending it out?

Cool.

And you are recommending scrapping the dual-boot and going for Windows 7, and if a game is so old it has troubles running on it just run it in a vm? (Well, if that is not a thread hijack, I don't know what is, but hey - I backed up most of my stuff 14 days before it all hit the fan - but that financial data is bugging me. I made changes a week ago, and only saved to the storage drive and the OS drive, without doing a third level backup to cd/usb/independent drive).

Posted by: the bigg
« on: September 26, 2009, 07:35:52 PM »

cough Windows 7 cough

also, if you can't POST get a SATA to USB converter for your backups  ;)
Posted by: cmorgan
« on: September 26, 2009, 02:15:57 PM »

nevermind. POS BSOD'd due to nVidia's lovely and highly competent interactions with the equally efffervescent and helpful folks at Microsoft, leading to some very fasinating error codes, several hours of beating my head into a wall, now either a. a corrupted bios with no access to a video source (so old-skool jumpers, and I haven't been there since the reigning king of the heap was a 486) b. a RMA'd mainboard, c. a complete reinstall of Vista/XP, or a+b+c in any combination thereof.

Having backups doesn't help if you can't get a POST to complete, or if you can't see a screen to tell you that it did...

I'm offline on this stuff for a few days, at least, as all I have to work with is a MacBook Pro.
Posted by: cmorgan
« on: September 26, 2009, 08:43:01 AM »

Yep - I can triple-check, but my "big pile of mods" directory shows that this is used by code mavens, not likely to be tossed about in many other places. Do you folks want line/examples to check, just in case?

Posted by: Miloch
« on: September 26, 2009, 02:16:25 AM »

I doubt there's anything too obscure using this command to justify a separate command rather than a fix. A quick grep of *.tp* on my full BWP install (granted from a year or two ago but whatever) shows: XPMod aka DEF JAM (possibly the first mod to request and really use this command to its fullest - we're trying to do the same for gold as what it does for XP only it's tougher since we have to deal with dialogue), BG2 Tweaks (nothing too obscure there - replacing one string with a SPACES variable looks like), Rogue Rebalancing, BiG World Fixpack, Divine Remix, Refinements and TBTweaks (those last two I assume you're familiar with :)).
Posted by: Taimon
« on: September 25, 2009, 05:31:33 PM »

I vote for fix.
It does make much more sense this way.
Posted by: the bigg
« on: September 25, 2009, 11:46:23 AM »

Actually, I'm debating wether fixing REPLACE_EVALUATE rather than adding a safe version - I know there's an obscure mod somewhere screaming COPMATTIBILLITY1111!!11!!, but I believe this is a case of an oversight, rather than a case of "JCompton requested it in 2001".
Posted by: Taimon
« on: September 25, 2009, 10:33:44 AM »

On the other hand, I can add a saner version of REPLACE_EVALUATE in 212, that starts looking again at the end of the match, rather than at curPos+1, so that it avoids the loop I discussed above.
Yeah, agreed. (It should restart at current+strlen(replacement).)
This was my try at it, but it suffers from the same "restart at +1" problem.
Code: [Select]
  REPLACE_EVALUATE ~\([^0-9]\|^\)\([0-9,]+[0-9]\)\([^0-9]\|$\)~ BEGIN
    INNER_PATCH_SAVE stripped "%MATCH2%" BEGIN REPLACE_TEXTUALLY "," "" END
    amount = stripped / 2
  END ~%MATCH1%%amount%%MATCH3%~