|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-4-24. : 10:53 am] Lanthanide -- you have to mark the input as having a section, and that becomes a numbered section in the replace text[2016-4-24. : 10:52 am] NudeRaider -- sry if I'm doing some silly beginners mistake but if I search for .*(<p id="toptext">).*\r\n and replace it with <br> the whole line gets replaced (using notepad++)[2016-4-24. : 10:50 am] Lanthanide -- no idea what the tool is, and it doesn't use unix standard formatting for some reason[2016-4-24. : 10:50 am] Lanthanide -- just googled this: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/regular_expressions.html[2016-4-24. : 10:48 am] Lanthanide -- if you're doing it interactively then you can select when the text is replaced or not, so you'd avoid doing stupid replacements[2016-4-24. : 10:47 am] Lanthanide -- if you're doing a massive file, then that would just end up replacing all of the line breaks, which you probably don't want[2016-4-24. : 10:47 am] NudeRaider -- LanthanideLanthanide shouted: and actually, you don't really need to search for the closing tag but then it would replace all line feeds after it found the tag, right? Or just 1? I need any number between 0 and ... say 7 replaced.[2016-4-24. : 10:47 am] Lanthanide -- ah, that would depend if you're doing the find and replace interactively or not[2016-4-24. : 10:46 am] Lanthanide -- and actually, you don't really need to search for the closing tag[2016-4-24. : 10:46 am] Lanthanide -- I think notepad++ had some silly limitations like it could only search for the first linefeed and then it'd stop, and it couldn't be used to put line feeds or tabs in the replacement text[2016-4-24. : 10:43 am] Lanthanide -- Kate on linux will do it fine though, that's what I use at work for this sort of thing[2016-4-24. : 10:42 am] Lanthanide -- the hardest part of this may actually be finding tools that will let you do a find-and-replace regex on whitespace characters[2016-4-24. : 10:38 am] NudeRaider -- k. I'm new to regex but I shall give it a try. Btw. I'm trying to get rid of the line feeds ( \r\n ) and replace them with <br> so the tag takes just 1 line, as it's supposed to.[2016-4-24. : 10:32 am] Lanthanide -- and some of them are wonky when it comes to handling actual new lines in the input[2016-4-24. : 10:32 am] Lanthanide -- note that not all editing tools can do find and replace with regex[2016-4-24. : 10:31 am] Lanthanide -- I don't know how you could do a variable number of <br>, which would result in a variable number of fragments that you want to keep[2016-4-24. : 10:31 am] Lanthanide -- in this case there are only two fragments so you only need \1\2[2016-4-24. : 10:31 am] Lanthanide -- trying to go much farther than that is probably not worth it, because the replace operation with regex is more limited than the search operation, since you have to specify each fragment to keep using numbers[2016-4-24. : 10:30 am] Lanthanide -- so if a particular tax set has 5 <br> then you would need to run it 5 times to remove them[2016-4-24. : 10:29 am] Lanthanide -- and since you want to erase the text you'r looking for (<br>), your replace string would just be \1\2[2016-4-24. : 10:29 am] Lanthanide -- and then you need to surround the first tag and random text with sequence braces, and the last tag and random text with sequence braces[2016-4-24. : 10:28 am] Lanthanide -- then it's a matter of finding the first tag, then random characters within which is an embedded match, followed by the closing tag[2016-4-24. : 10:27 am] Lanthanide -- build the regex up: first parse for the open tag, then parse for the close tag, then put them together and parse for the tag with any random text inside using .*[2016-4-24. : 10:10 am] NudeRaider -- is it possible with regex to find start and end of the tag and replace stuff inside?[2016-4-24. : 10:09 am] NudeRaider -- hm... looking for a program that identifies a tag ( <p id="toptext"></p> ) and lets me do a search and replace only inside this tag. Problem: The contents of the tag are likely to be spread among multiple lines--which is exactly what I wanna remedy: Replace line feeds with <br>[2016-4-24. : 8:38 am] NudeRaider -- RoyRoy shouted: Are you trying to direct link those? Because Snaggy recently changed it so you can't direct link anymore. I mean hotlinking is a kind of dickish move, so I understand why they're doing it. And since their image viewer is pretty useful I'm totally okay with them doing it and not hotlinking anymore[2016-4-24. : 8:32 am] NudeRaider -- FaRTy1billionFaRTy1billion shouted: why are you still up? we should ask YOU this[2016-4-24. : 7:33 am] O)FaRTy1billion[MM] -- I haven't done any extensive testing, just that the game runs, shows images, and shows the extended IDs[2016-4-24. : 7:32 am] O)FaRTy1billion[MM] -- it was actually easier than I was expecting. There was a bug in my code that made it not replace all of the addresses, one address had the wrong opcode size (+3 instead of +1) so it was causing an access violation, but in doing so it showed me a constant value I had missed.[2016-4-24. : 6:24 am] O)FaRTy1billion[MM] -- I got flingy, sprites and images. Which dat should I do next? How useful are weapons, techs, or upgrades (the latter two might need some .dat requirement edits in fg?[2016-4-24. : 6:21 am] O)FaRTy1billion[MM] -- I know. ;o I was trying anyway. It doesn't really matter[2016-4-24. : 5:56 am] Roy -- Are you trying to direct link those? Because Snaggy recently changed it so you can't direct link anymore.[2016-4-24. : 5:51 am] O)FaRTy1billion[MM] -- https://i.snag.gy/sgoWiS.jpg images.dat successfully expanded. ![]() [2016-4-24. : 5:42 am] O)FaRTy1billion[MM] -- https://i.snag.gy/olan0b.jpg this marine has a flingy ID of 209, which has a sprite ID of 517, which has an image ID of 999 though. So that's cool.[2016-4-24. : 5:36 am] O)FaRTy1billion[MM] -- https://i.snag.gy/Ay2ekU.jpg I didn't break anything. Nope, sure didn't. Nothing at all.[2016-4-24. : 4:53 am] O)FaRTy1billion[MM] -- I've played with you guys, everyone just always does it when I'm not home or otherwise doing something else |
Symmetry,
Wing Zero,
DarkenedFantasies