Forum

> > Stranded II > General > I need stranded II recompiled for tiles in editor
Forums overviewStranded II overviewGeneral overviewLog in to reply

English I need stranded II recompiled for tiles in editor

9 replies
To the start Previous 1 Next To the start

old I need stranded II recompiled for tiles in editor

ModJuicer
Super User Off Offline

Quote
user Mc Leaf made a stranded 2 mod that makes it possible have easy placement of objects. I found the .bb (blitz basic) file that is responsible for this which is right here > https://www.mediafire.com/file/hixt075z26sum2g/editor.bb/file
If someone can download SII source code which is on the site and then replace the original editor.bb with this editor.bb file and compile that would be amazing

I don't know how to compile in blitz basic. Can someone compile this for me and upload? (hopefully in blitz basic latest version v1.99-v1.108 or in v1.97 )

That way I (and other people that download) will be able to make maps much easier.
edited 3×, last 18.05.20 06:31:46 pm

old Re: I need stranded II recompiled for tiles in editor

DC
Admin Off Offline

Quote
What's the problem with compiling it yourself?

1. Get Blitz3D here (or somewhere else) https://blitzresearch.itch.io/blitz3d
2. Get the Stranded II source here http://www.unrealsoftware.de/get.php?get=stranded2v1001source.zip&p=1
3. Follow the instruction in README.txt (it's just a few steps. Basically only copying some files to the right folders)
4. Open "StrandedII.bb" (copied to the right location) in Blitz3D
5. Compile (and run) with F5
6. If running works: Program > Create Executable...

Hope that helps! Let us know if you need more help with that!

(disclaimer: Didn't compile Stranded II for YEARS. Not sure if it works with the latest Blitz3D version etc. It's very possible that you run into problems even though you did everything right!)

old Re: I need stranded II recompiled for tiles in editor

Spark Fountain
User Off Offline

Quote
@user DC: It works very well. I just tried it maybe 2 or 3 months ago.
@user ModJuicer: You should have a look into the Readme file of the Stranded II source code folder. There you'll find instructions how to compile Stranded II. Don't forget to activate the command line parameter "inbb", otherwise it will throw an error. And you need to copy the user32.decls file into the userlibs directory of Blitz3D.

old Re: I need stranded II recompiled for tiles in editor

ModJuicer
Super User Off Offline

Quote
I read it and did that. Don't know if I added the command line in correctly though.

I clicked 'create executable'. I didn't see any button that said anything about compiling.

it says 'function 'openclipboard' not found'

old Re: I need stranded II recompiled for tiles in editor

DC
Admin Off Offline

Quote
Then you probably did something wrong with the copy steps.
README.txt has written
- put "userlibs/user32.decls" in the userlibs dir of Blitz 3D

Copy only the file! Not the folder!
So in your
<Blitz3d>/userlibs
folder there must be a file called
user32.decls
afterwards!

old Re: I need stranded II recompiled for tiles in editor

ModJuicer
Super User Off Offline

Quote
I did that after I read the instructions more thoroughly. Still problems.
Also how do I add stuff to the Blitz 3D Program Command Line?

EDIT: I think the code problem is in the copy/paste code in functions.bb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;### Copy
Function copy(txt$)
	Local cb_TEXT=1
	If txt$="" Then Return 
		If OpenClipboard(0)
			EmptyClipboard
			SetClipboardData cb_TEXT,txt$
			CloseClipboard
	EndIf
End Function

;### Paste
Function paste$()
	Local cb_TEXT=1
	Local txt$=""
	If OpenClipboard(0)
		If ExamineClipboard(cb_TEXT) 
			txt$=GetClipboardData$(cb_TEXT)
		EndIf
		CloseClipboard
	EndIf
	For i=1 To Len(txt)
		DebugLog Mid(txt,i,1)+" "+Asc(Mid(txt,i,1))
	Next
	Return txt$
End Function

It would be easier if someone else compiled for me tho. I am not experienced.


I seem to remember that the copy function didn't work in Stranded II. Maybe you deleted the copy script in the regular stranded II version because it caused errors?
edited 3×, last 22.05.20 03:41:17 am

old Re: I need stranded II recompiled for tiles in editor

DC
Admin Off Offline

Quote
If you still have problems you should just tell us what exactly these problems are (aka what happens) and we can easily help you for sure.

You have to do the userlib stuff to make it work.
Alternatively you can replace what you posted with:
1
2
3
4
5
6
7
8
;### Copy
Function copy(txt$)
End Function

;### Paste
Function paste$()
	Return ""
End Function
(p.s.: no, copy and paste works in the game and is enabled. at least that's the case for me)

You add stuff to the command line in the Blitz 3D IDE via > Program > Program Command Line... > enter -inbb > OK

old Re: I need stranded II recompiled for tiles in editor

ModJuicer
Super User Off Offline

Quote
maybe keyboard is in a different format.

Thanks 4 the code i'll try it

EDIT: Higher versions don't fix the black bug. Only versions 1.97 and below. (or maybe 1.96 idk)

I wish Mc Leaf were here. He could fix this easily enough.

EDIT:
Is there a possible way I could run a code before placing something down. If I can, I might be able to do it myself. or not.

Maybe you or someone else could write a code that causes things in stranded 2 to snap to grid when 'ctrl' is held down. With your experience (even if it's been a while) you should be able to write that up in 10 minutes.
I just don't know if it would be worth your time.
edited 4×, last 24.05.20 04:00:04 am

old Re: I need stranded II recompiled for tiles in editor

BenSaiyan
User Off Offline

Quote
Nice! I was about to ask the same thing. Thanks for the help, fellas!

By the way, just in case anyone here owns a truck, my cousin Trevor is offering up a few truck wheel and tire packages from 4WheelOnline. You might want to check it out.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview