Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HPL3 WIKI] What kind of tutorials/pages would you like to see?
TiManGames Offline
Senior Member

Posts: 517
Threads: 25
Joined: May 2015
Reputation: 11
#51
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 03:52 PM)Modulator Wrote: Awesome! I'll take a look at that right now and fix it up!

So how did it work for you anyawy?

This forum is dead
(This post was last modified: 10-09-2015, 04:00 PM by TiManGames.)
10-09-2015, 04:00 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#52
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

It's likely I was weeding through the helpers that I had included at the top of my script and got rid of helper_ai when I was exporting it, because it seemed like I didn't need it for what I was doing.

Link updated: https://www.dropbox.com/s/hq5dukyv6idhrd...p.zip?dl=0
Changing the wiki link now Wiki link now updated. Sorry for the inconvienience!

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 10-09-2015, 04:11 PM by Romulator.)
10-09-2015, 04:09 PM
Find
Hauken Offline
Member

Posts: 62
Threads: 19
Joined: Jul 2012
Reputation: 1
#53
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

One thing im looking at now is.

Importing custom sounds and music, and a tutorial between FMOD and how the old system works in hpl 3 could be useful to know.

Developer for Cryout.
10-09-2015, 05:42 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#54
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

https://wiki.frictionalgames.com/hpl3/co...ng_changes

added a simple thread for reporting changes to the fundamentals of SOMA scripting. Made this thread because I needed a place to report that writing string will no longer work, you need to use tstring, since there are likely other changes it makes more sense to let them pile up in their over time.

EDIT: http://root.cern.ch/root/html/TString.html
if this information is relevant for SOMA and is correct, it sounds like tstrings offer further optimization, but are limited to only short strings.

a test of mine also revealed that with tstrings, int to string convertion is easier. before you had to do it like this:

string AsString = "" + MyIntVar;

now it's:

tstring AsString = MyIntVar;

it's a small change that matters very little mostly, but for a beginner who does not know how to convert an int to string this will be the most obvious way of doing it, avoiding them having to go through the trouble I did.
(This post was last modified: 10-09-2015, 06:33 PM by WALP.)
10-09-2015, 06:08 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#55
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 06:08 PM)The Mug Wrote: string AsString = "" + MyIntVar;

now it's:

tstring AsString = MyIntVar;

tstring

Is that a changed variable type or is that just a misspell? I'd for most part not get used to new variable types unless I have to.

Derp.
(This post was last modified: 10-09-2015, 07:28 PM by Neelke.)
10-09-2015, 07:28 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#56
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 07:28 PM)Neelke Wrote:
(10-09-2015, 06:08 PM)The Mug Wrote: string AsString = "" + MyIntVar;

now it's:

tstring AsString = MyIntVar;

tstring

Is that a changed variable type or is that just a misspell? I'd for most part not get used to new variable types unless I have to.

tstring is the new string. if you type string it will not be colored and the game will be confused and not know what to do with it. it functions pretty much the same as the string as far as I know.
10-09-2015, 08:27 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#57
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 08:27 PM)The Mug Wrote: tstring is the new string. if you type string it will not be colored and the game will be confused and not know what to do with it. it functions pretty much the same as the string as far as I know.

Sorry, misread. Kind of stupid imo. I would personally stick to the original variable types if I were Frictional Games and just reprogram it so it can just manage a regular string.

Derp.
(This post was last modified: 10-09-2015, 09:19 PM by Neelke.)
10-09-2015, 09:16 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#58
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 09:16 PM)Neelke Wrote:
(10-09-2015, 08:27 PM)The Mug Wrote: tstring is the new string. if you type string it will not be colored and the game will be confused and not know what to do with it. it functions pretty much the same as the string as far as I know.

Sorry, misread. Kind of stupid imo. I would personally stick to the original variable types if I were Frictional Games and just reprogram it so it can just manage a regular string.

I dunno, based on the webpage I linked this gives better performance. Having to write a t seems worth the performance gain.
10-09-2015, 11:02 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#59
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 11:02 PM)The Mug Wrote: I dunno, based on the webpage I linked this gives better performance. Having to write a t seems worth the performance gain.

If that's the case, then your scenario with tstring AsString = MyIntVar; makes more sense. Have never ever heard of this variable type before though.

Derp.
10-09-2015, 11:28 PM
Find
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#60
RE: [HPL3 WIKI] What kind of tutorials/pages would you like to see?

(10-09-2015, 06:08 PM)The Mug Wrote: EDIT: http://root.cern.ch/root/html/TString.html
if this information is relevant for SOMA

Big Grin I don't think that's the case.
The TString type you linked to is from something called ROOT - a library used by particle physicists. I happen to have a friend who is a physicist, and I was helping him write some code that uses ROOT, so this is how I know. Big Grin
Also, if you look at the URL, it has CERN in it - the organization that operates the Large Hadron Collider (LHC), the particle accelerator that was used to discover the Higgs boson.

The tString the game uses is a string type provided by the HPL3 engine itself, and it's declaration can be found in hps_api.hps (search for "class tString").

P.S. For those who know a bit about C++, I'm guessing that the "t" prefix stands for a typedef, and that the tString is probably an exported typedef of some C++ string type - like std:Confusedtring. There's also a tWString, which I'm guessing could be a typedef of std::wstring.
(This post was last modified: 10-11-2015, 12:05 AM by TheGreatCthulhu.)
10-10-2015, 11:59 PM
Find




Users browsing this thread: 1 Guest(s)