Jump to content


Photo

A patching problem


  • Please log in to reply
2 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 16 February 2018 - 03:52 PM

COPY_EXISTING_REGEXP GLOB ~.*\.ITM~ ~override~

  READ_LONG 0x1C cat
  READ_ASCII 0x22 view
  PATCH_IF (cat = 2 & view != ~3A~ & view != ~4A~) THEN BEGIN...

 

This is giving me an error, because 0x22 is a text field and "cannot be converted to an integer." Well, what to do?



#2 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 16 February 2018 - 07:30 PM

cat = 2 && !(~%view%~ STRING_EQUAL_CASE ~3A~) && !(~%view%~ STRING_EQUAL_CASE ~4A~)


Retired from modding.


#3 temnix

temnix
  • Member
  • 983 posts

Posted 17 February 2018 - 09:00 AM

Well, that's one of those things that make one appreciate the classes system. Each to his own... Thanks, Ardanis.