Programming related discussions related to game research
-
Garo
- Posts: 20
- Joined: Wed Nov 18, 2020 5:54 pm
Post
by Garo »
I have a string that's delimited by nulls (I put spaces instead)
I want to split the string into an array by nulls. Then loop through each item in the array and log it.
Code: Select all
./SE_PLAYER/char/GAN/jump01.gsn ./SE_PLAYER/char/GAN/jump02.gsn ./SE_PLAYER/char/GAN/itemTake.gsn ./SE_GAME/w00s00/fruit.gsn ./SE_GAME/w00s00/star.gsn
-
chrrox
- Posts: 388
- Joined: Thu Aug 07, 2014 10:28 pm
Post
by chrrox »
in what programming language?
you could just take a hex editor and replace 0x00 with 0x0D 0x0A
and save it as a text file.
-
aluigi
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi »
I guess he refers to quickbms.
In that case I guess the only option is using getct:
Code: Select all
for
getct NAME string ' '
putarray 0 -1 NAME
next