English I need stranded II recompiled for tiles in editor

8 replies
Goto Page
To the start Previous 1 Next To the start
Up
ModJuicer
Super User
Offline Off
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
Download SII Enhanced Here> IMG:https://www.mediafire.com/convkey/adb3/7cwx7c9bgnfmyfg6g.jpg
< Download SII Enhanced Here
18.05.20 07:51:22 pm
Up
Assassin moder
User
Offline Off
it doesn't work like that.. it is far more complicated than it seems like.
18.05.20 08:15:51 pm
Up
DC
Admin
Offline Off
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!)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
18.05.20 09:09:22 pm
Up
Spark Fountain
User
Offline Off
@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.
18.05.20 09:27:52 pm
Up
ModJuicer
Super User
Offline Off
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'
Download SII Enhanced Here> IMG:https://www.mediafire.com/convkey/adb3/7cwx7c9bgnfmyfg6g.jpg
< Download SII Enhanced Here
18.05.20 10:12:33 pm
Up
DC
Admin
Offline Off
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!
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
22.05.20 03:07:43 am
Up
ModJuicer
Super User
Offline Off
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

Code:
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
Download SII Enhanced Here> IMG:https://www.mediafire.com/convkey/adb3/7cwx7c9bgnfmyfg6g.jpg
< Download SII Enhanced Here
22.05.20 07:29:02 pm
Up
DC
Admin
Offline Off
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:
Code:
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
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
24.05.20 12:22:39 am
Up
ModJuicer
Super User
Offline Off
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
Download SII Enhanced Here> IMG:https://www.mediafire.com/convkey/adb3/7cwx7c9bgnfmyfg6g.jpg
< Download SII Enhanced Here
To the start Previous 1 Next To the start