Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Aku_Aku, 7th_zorro, Ayumi), 1,050 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Acknex.dll X 3 #435176
01/03/14 17:37
01/03/14 17:37
Joined: Apr 2011
Posts: 67
Balkan
Pavle Offline OP
Junior Member
Pavle  Offline OP
Junior Member

Joined: Apr 2011
Posts: 67
Balkan
Hello,

It would be great if someone can help, I want to combine 3 separate exe files in one game and I tried to do it with 3 separate folders containing one acknex.dll file in each and this code at the beggining of each main.c script:

#define PRAGMA_PLUGIN "A_dll\\acknex.dll"; //(B_dll, C_dll)

..but it's not working. Any idea how to do this?


>>Demos free3DModels Tutorials<<
>>>>>>> by Pavle Nikolic <<<<<<<
Re: Acknex.dll X 3 [Re: Pavle] #435178
01/03/14 17:45
01/03/14 17:45
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
After compiling you have to use a "Binder".
It will bind the exe files to 1 using a stub. This method was used by many viri and trojans to spread them over the net and over usb-sticks.
Thats the reason why it is often detected as virus!
If you have the code of all 3 why not copy them together instead of merging the compiled exe files??

Re: Acknex.dll X 3 [Re: Ch40zzC0d3r] #435179
01/03/14 17:55
01/03/14 17:55
Joined: Apr 2011
Posts: 67
Balkan
Pavle Offline OP
Junior Member
Pavle  Offline OP
Junior Member

Joined: Apr 2011
Posts: 67
Balkan
Thanx for replying, I have 3 different games with different scripts that I need to combine.

I have no problem with starting the Game2 from within the Game1 menu with:
exec("Chapter2\\Main2.exe",NULL");
..but if i want to start Game1 again from the Game2 menu I am in trouble.


>>Demos free3DModels Tutorials<<
>>>>>>> by Pavle Nikolic <<<<<<<
Re: Acknex.dll X 3 [Re: Pavle] #435185
01/03/14 19:14
01/03/14 19:14
Joined: Jul 2013
Posts: 158
F
Feindbild Offline
Member
Feindbild  Offline
Member
F

Joined: Jul 2013
Posts: 158
how about exec("..\\Main1.exe",NULL)?

Re: Acknex.dll X 3 [Re: Feindbild] #435190
01/03/14 19:31
01/03/14 19:31
Joined: Apr 2011
Posts: 67
Balkan
Pavle Offline OP
Junior Member
Pavle  Offline OP
Junior Member

Joined: Apr 2011
Posts: 67
Balkan
Yes but I have Main1.exe in the first folder and then Main2.exe and Main3.exe in the sub-folders: Chapter2 and Chapter3.

I can start Main2.exe from the root folder but I need to be able to also start Main1.exe from Chapter2 sub-folder.

..unless exec("..\\Main1.exe",NULL) can search upwards through folders?


>>Demos free3DModels Tutorials<<
>>>>>>> by Pavle Nikolic <<<<<<<
Re: Acknex.dll X 3 [Re: Pavle] #435196
01/03/14 19:51
01/03/14 19:51
Joined: Jul 2013
Posts: 158
F
Feindbild Offline
Member
Feindbild  Offline
Member
F

Joined: Jul 2013
Posts: 158
In theory it should work, the ".." direction is supposed to go upwards by one step.

Re: Acknex.dll X 3 [Re: Feindbild] #435201
01/03/14 20:14
01/03/14 20:14
Joined: Apr 2011
Posts: 67
Balkan
Pavle Offline OP
Junior Member
Pavle  Offline OP
Junior Member

Joined: Apr 2011
Posts: 67
Balkan
The ".." seems to be working, this is great, thank you all for your advices:)


>>Demos free3DModels Tutorials<<
>>>>>>> by Pavle Nikolic <<<<<<<
Re: Acknex.dll X 3 [Re: Pavle] #435225
01/04/14 02:19
01/04/14 02:19
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
To complete this thread for other users:

Each folder in Windows has these 2 virtual folder entries:
.
..

So if you ask for a folderlist through the winapi, you'll get these two at the beginning.
The single dot represents the current folder.

So:
".\MyFile.txt"

is a path to MyFile.txt in the current folder.

The double-dot represents the parentfolder. This one is used(as mentioned before) to step upwards by one level without knowing the name of the parent.

As each Folder contaisn these 2(except the root, like C:\) you can chain relative anonymous pathes.

Like:
"..\..\..\MyFile.txt"
goes 3 levels up and expects a MyFile.txt in this parentfolder.

"..\..\MyFolder\MyFile.txt"

This goes 2 levels up, and within this parent, it enters the folder MyFolder for the file MyFile.txt.

Greetings
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1