Else Heart.Break()

Else Heart.Break()

Gl'bgolyb Aug 18, 2017 @ 7:58pm
I made a new guide for advanced coding
http://steamcommunity.com/sharedfiles/filedetails/?id=1114716699

There's a lot of things you can do in SPRAK that the game never tells you. I made a guide that I will periodically update that contains all sorts of information I had to learn on my own, that doesn't exist in any other guide. Rates would be appreciated, good or bad.
< >
Showing 1-4 of 4 comments
AuoroP Aug 30, 2017 @ 7:26pm 
I have seen where the MainFrame lives and without this guide I'd have missed all its set and get wonders! Thanks for taking the effort to create this great guide!

I have some things you might have missed:
'single' + "double" + 'd "in" s'.
Things broadly fall into two classes: tools and Connectable Computer!
I suspect this game does not save machine state so persistence is only possible via Quins...
I have found no in game way for the player write floppy notes, code!
The read-only aspect makes Quins seem impossible.
I may have missed something else. Heart.Break() seems inevitable! :D
I have correct code to turn GetPosition's result into [string name, number x, number y]; let me know if you'd be interested in using that in an example here :)

EDIT: I have since found both memories and logs in the game save file! :)
If you can search files this finds memories: "values":["\"Memory\"",
Last edited by AuoroP; Sep 1, 2017 @ 3:24am
Gl'bgolyb Aug 31, 2017 @ 7:46am 
Originally posted by AuoroP:
I have seen where the MainFrame lives and without this guide I'd have missed all its set and get wonders! Thanks for taking the effort to create this great guide!

I have some things you might have missed:
'single' + "double" + 'd "in" s'.
Things broadly fall into two classes: tools and Connectable Computer!
I suspect this game does not save machine state so persistence is only possible via Quins...
I have found no in game way for the player write floppy notes, code!
The read-only aspect makes Quins seem impossible.
I may have missed something else. Heart.Break() seems inevitable! :D
I have correct code to turn GetPosition's result into [string name, number x, number y]; let me know if you'd be interested in using that in an example here :)
I will likely update with incrementing (++), decrementing (--), how to use and manipulate floppies, and how HardDrives work.

Quines, I don't think are possible, and I've tried multiple times with different methods. It doesn't however, seem all that important because all of the functionality I can think of can be obtained through a single central computer using Connect.

Other than that, if you would like, I never really messed with GetPosition, so I can add your contribution to the guide and give you credit for it. I'll probably make a whole section on string slicing .
AuoroP Aug 31, 2017 @ 4:53pm 
GetPosition takes a person's name and returns a string containing the name of the room and their x and y coordinates. My example case:
Room: [room], coordinate: (x,y)
[room] ... ends with comma!
x ... ends with comma!
Yay! We obviously need one function :
# ignores skip chars and returns the index of the next comma string comma(number skip, string str) string result = '' loop idx from skip to Count(str) if ',' == str[idx] return result else result += str[idx] end end end # # loops your position: based on your x pos.! void cycle() array rooms =['SodaStorage','Hotel_Exterior','Cafe_Exterior','BurrowsToCasinoPier','PlazaBackstreet','PoorDesolateBuilding1_Exterior'] # xs 0, 1, 2, 3, 4, 5 array ys = [ 0,17,32,20,38, 6] number i = comma(2, Position() ) number max =Count(ys) - 2 if i < 0 or i > max i = 0 # wrap else i++ end SetWorldPosition( rooms, i, ys )
end

# parses info from GetPosition into [loc,x,y]
array parsePos(string str)
string n = comma(6,str)
string x = comma(6+Count(n)+14+1,str)
string y = ''
#loop idx from 6+Count(n)+14+Count(x)+1 to Count(str)
loop idx from 6+Count(n)+14+Count(x)+2 to Count(str)
if idx < Count(str) - 1
y += str[idx]
else
number xn = x
number yn = y
#Say(n +'!'+ x +'!'+ y)
#Print(n +'!'+ x +'!'+ y)
#Sleep(5)
#return [n,x,y]
return [n,xn,yn]
end
end
end # [/code] WTFSteam?
Last edited by AuoroP; Nov 18, 2017 @ 10:55pm
AuoroP Nov 18, 2017 @ 10:42pm 
This was used by my police Missing Person finder: the default shows the result for 1 second. I made it cache the string result and update the screen when they move. The result can be
Test
12:34 [room, x, y]
12:35 [room, x, y++)

I also have an Input-less way to boot from floppies starting with #\n, show floppy notes or Slurp in Computers/LapTopOS:
DisconnectAll() ClearText() if HasFloppy() var lines = LoadData() var len = Count(lines) if lines[0] == '#' BootFromFloppy() else loop i from 0 to len Print( lines )
Sleep(2)
end
end
else if 0 < Count( GetConnections() )
Input('Slurp?')
Slurp()
end

Print('*******************************************************')
Print('')
Print('R A N D O M M O V I E T I T L E G E N E R A T O R')
Print('')
Print('*******************************************************')
Print('')

array word1 = ['Way', 'Lord', 'Master', 'Return', 'Story', 'Saga', 'Fish']
array word2 = ['Magical', 'Fantastic', 'Thunder', 'Mysterious', 'Dear', 'Wonderful', 'Evil']
array word3 = ['Mrs. X', 'Cats', 'Ring', 'Ninja', 'Prince', 'Mystery', 'Princess', 'Lady', 'Hero']

string Pick(array a)
number i = Int(Count(a) * Random())
return a
end

loop
string w1 = Pick(word1)
string w2 = Pick(word2)
string w3 = Pick(word3)
Print('`The ' + w1 + ' of the ' + w2 + ' ' + w3 + '`')
Print('')
Print('')
Print('')
Print('Press return to')
Print('generate title')
Input('')
#ClearText()
Print('')
end [/code]


I have confirmed a way to control the rain: Connect('MeteorologyServer').SetRain(0)

ADDED If cycle() called from teleporter, it takes you to tramless exteriors and soda storage!!

NOTE the game contains a folder that allows you to add code or fix bugs like the moon lander, slots : /Steam/steamapps/common/ElseHeartbreak/ElseHeartbreak_Data/InitData/Sprak/
It has been tested to work for new games; this allows editing .spak files in any text editor!
Last edited by AuoroP; Nov 18, 2017 @ 10:47pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50