Forum

> > Stranded II > General > Open Source
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Open Source

103 replies
Page
To the start Previous 1 2 3 4 5 6 Next To the start

old Re: Open Source

JamesKeenan
User Off Offline

Quote
dart193 has written
Hmmm, i think it is C or C++. Or Java.


It's actually none of those. Blitz3d is BASIC. You can find it remarkably easy online by just Google searching "Blitz3d" or "blitz3d basic" or "blitz3d is based on..."

old Re: Open Source

dart193
User Off Offline

Quote
But i played colobot where was C, and this is copy of it. I check it with search... and found it similar to C. Basic is another. I don't understand that at all.

old Re: Open Source

DC
Admin Off Offline

Quote
Blitz (Basic) 3D is a language comparable with Basic. It has pretty much the same syntax etc.

The parsing of inf-files and scripts has been written with Blitz Basic as well.

Colbot? copy of what? Colbot is not related with Stranded II. Colbot is not even related with Blitz Basic as far as I know. So why are you talking about Colbot? That doesn't make much sense to me.

old Re: Open Source

dart193
User Off Offline

Quote
Sorry abuot colObot. That game where you can program bots. That where i learned that language. But that was C so i am wondering why it is basic.
About "copy" word - i meaned languages are same.

old Re: Open Source

Builder2-0
User Off Offline

Quote
Colobot allows you to use a language (and it is NOT C, it is closer to Java) to program bots.

BASIC is an entirely different language.

As DC said, the language used in coding Stranded II is Blitz(3d? Basic? I can never remember the full name of it, lol), but is comparable to BASIC.

As for you second question:
dart193 has written
And what prog lang used in inf-files?

It's not a language. The actual "script" sections use S2Script (which as far as I can tell was made by DC, and it's incredibly easy to use). The other sections aren't scripting\coding\programming, they are merely collections of data for the S2.exe to use.

old Re: Open Source

dart193
User Off Offline

Quote
Builder, do you played colobot?
Ontopic:
Well i meaned script part. I rechecked intermet and found basic differ than here. C looks more like BB. That is completely strange - unbelieveliable.

old Re: Open Source

Builder2-0
User Off Offline

Quote
dart193 has written
Well i meaned script part. I rechecked intermet and found basic differ than here. C looks more like BB. That is completely strange - unbelieveliable.

It's completely strange and unbelievable because you have no idea what you are talking about.

C
1
2
3
4
5
6
7
8
#include <windows.h>

int PASCAL WinMain(HINSTANCE hInstance,
  	HINSTANCE hPrevInstance, LPSTR CmdLine, int Show)
{
  	MessageBox(GetActiveWindow(), "Hello World!", "Hello Windows World", MB_OK);
  	return 0;
}

BASIC:
1
2
10 REM Hello World in BASIC
20 PRINT "Hello World!"

BlitzMax (not Blitz3d, but close enough)
1
2
3
4
5
6
Graphics 640,480,16
While Not KeyHit(KEY_ESCAPE)
    	Cls
    	DrawText "Hello World",0,0
    	Flip
EndWhile

old Re: Open Source

Ominus
User Off Offline

Quote
eonsystem has written
that al very good and well but why use .b3d extensions for models???


Beacuse .b3d is Blitz Basic model format?
You could use .3ds but its only good for static models

old Re: Open Source

DC
Admin Off Offline

Quote
I think you got something wrong, dart193. All the code/scripts you see in the inf-files or s2s files is NO Blitz Basic code! It's Stranded 2 Script. You can't even see the real Blitz Basic 3D code unless you download the open source package and have a look into the bb files.

old Re: Open Source

eonsystem
User Off Offline

Quote
so you'd use
1
Animate entity[,mode][,speed#][,sequence][,transition#]
to animate .b3d.
what I don't get is the sequence.

Question: How to cause break in movement?
I tried something like this
1
2
3
If EntityX(vehicle)<>Entityx(placer)
	then MoveEntity vehicle,EntityX(placer)
	endif
Using this will move my entity(vehicle) but will not stop once EntityX(vehicle) has reached EntityX(placer). Any ideas? Basically I need Entity(vehicle) to move in the direction/position of Entity(placer) and then stop at Entity(placer).

again.... any ideas???

erm... something else.
is there anyway to break out of input command???

old Re: Open Source

Crazyx
User Off Offline

Quote
I was thinking about changing some texts in SII...
With Blitz3D and source code, I can do that, right?
Do I need any other extra software?

old Re: Open Source

killprogram
COMMUNITY BANNED Off Offline

Quote
i Opened Up Blitz3d Then I Open Up StrandedII.bb Were It Was When I Extracted The Source, I Clicked 'run' And It Says "Function Opendclipboard Not Found", Am I Doing Something Wrong?

old Re: Open Source

Crazyx
User Off Offline

Quote
Bloodshot has written
Like what? Fatigue to Tiredness? That can be done in Sys/strings

That's a good example.
Am I right that it allows to change the German messages and misspellings too?

old Re: Open Source

prozhen
User Off Offline

Quote
Hi everybody. I see that Killprogram is banned, but anyhow. He asked what was wrong when he got "Function Opendclipboard Not Found" during compilation.
I was sitting on a nighttrain and had nothing to do, and I wanted to play Stranded 2 but didn't manage to get the original exe to work, it made me sit up many hours the night before my train left. Yeah, I waited with packing my stuff untill the last few hours before the train went, during the morning, thanks to Stranded 2 not working on Windows 7.

I sat down with my Blitz3D-copy and tried to compile it. Had some issues, but learned quite a bit from it.

When the errors about functions not found pops up, it has to do with not copying the declarations-file (user32.decls) into Blitz3d/userlib/-directory.

I have made a new blog about working with the sourcecode, you can find it at http://www.prozhen.no/

I also managed to get StrandedII.exe past the Memory Access Violation-problem in Windows 7. By removing all code related to the multiplayer-function, it suddenly worked.

I think this has to do with the way Blitz3D is working with the windows-libraries. In windows 7 everything is different. Both in a good and a bad way.

You can grab the modified exe (beta!) from the post, or directly from http://www.prozhen.no/files/StrandedII_win7.exe

I don't promise that it will work, but it is worth a shot!
Tell me how it goes!

Edit 2: After some thinking, it turns out that terrain_color_sawmp is actually terrain_color_swamp.
This will be the swamp-terrain-colors.
I suggest DC to update the original StrandedII-setup, by editing the game.inf-file so it reads "swamp" instead of "sawmp", and try to rebuild with the sourcecode released, just to be sure that the sourcecode will compile and run without changes to the original gamefile.

The Windows 7-friendly version above is now remade, and you should now not need to edit game.inf in order for it to work.
edited 2×, last 30.12.09 01:30:19 pm
To the start Previous 1 2 3 4 5 6 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview