Author Topic: Lost Key, Please, don't bite my head off.  (Read 1734 times)

0 Members and 1 Guest are viewing this topic.

deezinyamouf

  • Insane Joker
  • ****
  • Posts: 503
  • Abedee-Abedee-Abedee-Abedee- A - FUCK YOU!
    • View Profile
Lost Key, Please, don't bite my head off.
« on: April 29, 2010, 11:32:22 pm »
NVM
« Last Edit: July 18, 2010, 03:11:29 pm by deezinyamouf »
Some people say I'm crazy, and that PTSD has ruined my ability to interact, and properly communicate with others.

I tell those people to eat a dick.

;-)

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #1 on: April 29, 2010, 11:43:50 pm »
I would like to make a request for help. Please!

I have the Lost Keys modl. And would like to use it online. But the thing is, that I don't have the slightest clue as to how to do it online.

The guys I associate with won't tell me how to do it, they told me I have to figure it out, and they've told me that it has to do with a concept that goes a little something like:

If (this), then (this)...

And I've narrowed it down to what I think is preventing the mod from working online, which is a line of code that looks like this:

Quote
class Extended_PreInit_EventHandlers
{
    init = "{ loki_lk = true; [] execVM '\loki_lk\init.sqf' };";        
};
 

Could someone explain to me what i have to edit to make the mod think that I'm not online, so that it would work?

try this
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #2 on: April 29, 2010, 11:45:47 pm »
Pride said strip out the spawn{} thread and add a keypress or however you want to do it.
"Now we are going to watch my boys do it" - Joopig

deezinyamouf

  • Insane Joker
  • ****
  • Posts: 503
  • Abedee-Abedee-Abedee-Abedee- A - FUCK YOU!
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #3 on: April 29, 2010, 11:52:36 pm »
NVM
« Last Edit: July 18, 2010, 03:11:35 pm by deezinyamouf »
Some people say I'm crazy, and that PTSD has ruined my ability to interact, and properly communicate with others.

I tell those people to eat a dick.

;-)

Pride

  • Klass Klown
  • ***
  • Posts: 332
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #4 on: April 30, 2010, 02:06:05 pm »
He's using the OLD version of Loki lost keys, as evidenced by the use of extended event handlers. The newer version uses CBA, thus is a cleaner solution when working with mods.

That line dosen't exist in the newer one, so my method wouldn't work on this version. (Well actually, just call the script in that snippet)

Do what MrMedic said, that should work. (So long as you know whats setting that bool to true)

As for the pbo not running... You're supposed to extract the pbo then repack it, not hex edit it! *facepalm* (The tools come with the SDK me thinks, and there are some free tools to do it too.)
« Last Edit: April 30, 2010, 02:16:05 pm by Pride »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #5 on: April 30, 2010, 05:05:55 pm »
You're supposed to extract the pbo then repack it, not hex edit it! *facepalm*

funny stuff :) ..
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

seregavlg

  • Cheater Apprentice
  • *
  • Posts: 19
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #6 on: April 30, 2010, 05:10:34 pm »
see on     init = "if (isNil 'loki_lk') then { loki_lk = true; if (isServer) then { [] execVM '\loki_lk\init.sqf'}; };";     and think what you do

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #7 on: April 30, 2010, 05:18:53 pm »
i will save him time ..

set the var to true incase anything else checks it is valid , then execute the sqf
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

cyberchrist

  • Poptart
  • *
  • Posts: 6
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #8 on: May 06, 2010, 04:52:17 am »
i will save him time ..

set the var to true incase anything else checks it is valid , then execute the sqf


What does this even mean?

[TKC]Symantic

  • The Indifferent Character
  • The Central Committee
  • Heckler
  • *
  • Posts: 1647
  • I can has personal text?
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #9 on: May 06, 2010, 07:04:39 am »
What does this even mean?

    init = "if (isNil 'loki_lk') then { loki_lk = true; if (isServer) then { [] execVM '\loki_lk\init.sqf'}; };";       


your hack function
1)force loki_lk to true
2) execute the init.sqf





 
Enjoy your creative game-play, whatever that may include.

cyberchrist

  • Poptart
  • *
  • Posts: 6
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #10 on: May 06, 2010, 10:02:36 am »
What does this even mean?

    init = "if (isNil 'loki_lk') then { loki_lk = true; if (isServer) then { [] execVM '\loki_lk\init.sqf'}; };";       


your hack function
1)force loki_lk to true
2) execute the init.sqf

I still can't figure this out. So far I've tried:

init = loki_lk = true; if (isServer) then { [] execVM '\loki_lk\init.sqf'}; };";
init = "loki_lk = true; if (isServer) then { [] execVM '\loki_lk\init.sqf'}; };";
init = { loki_lk = true; if (isServer) then { [] execVM '\loki_lk\init.sqf'}; };";
init = "if (isNil 'loki_lk') then { loki_lk = true; { [] execVM '\loki_lk\init.sqf'}; };";

Pride

  • Klass Klown
  • ***
  • Posts: 332
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #11 on: May 06, 2010, 12:48:01 pm »
First 3 are wrong for obvious reasons.

Last one just needs a wiiiittle bit of tinkering to be a correct statement.

sean254

  • Online Villain
  • ***
  • Posts: 122
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #12 on: May 07, 2010, 09:31:31 pm »
I was also looking into the scripts but i couldn't figure it out, I then ended up forgetting about it lol .

Welcome_To_Hell

  • Relentless Teamkiller
  • **
  • Posts: 54
    • View Profile
Re: Lost Key, Please, don't bite my head off.
« Reply #13 on: May 22, 2010, 05:25:58 am »
Tried it but i don't get it either.

And i rewrote the GUI call init.sqf and EventHandlerPreload in config.cpp