Aller au contenu

Photo

Scripts/Blueprints and .hak relationship


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
Evelath

Evelath
  • Members
  • 56 messages
Hi Everyone,

I am looking at potentially reducing the number of scripts that I currently have in my toolset's palette and want to move them into a single .hak file.  If I were to create a new hak (scripts), and put in the script files for MYSELF, would all the players need that --exact same file--?  

So if I have:

"Scripts.hak" (This file actually has all the scripts)

And my players have:

"Scripts.hak" (This file has nothing inside it)

Would there be any kind of problem for them entering?  If I remember correctly it only checks the names to ensure they match, and not so much the content inside.  And if the content inside are simply a number of scripts for the toolset, it shouldn't have too much of a problem being used?

Anyone with knowledge on this would be much appreciated :)

#2
kalbaern

kalbaern
  • Members
  • 824 messages
Should be just fine. You can't have a completely empty hak though. Place a 2da or even a single script in it and all should be fine for the players.

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
If you are useing CEP there is already a hak inclued for doing this. It is cep2_custom.hak
Just place your scripts in it. since the players already have the blank .hak you will not need to have them download/make there own blank copy.

#4
Evelath

Evelath
  • Members
  • 56 messages
Great!  Thank you both for the information :)

#5
_six

_six
  • Members
  • 919 messages
Course, anything that works in a server-only hak will work just as well in a server-only override, and is more accessible that way if you need to fix any errors further down the line. The same applies for a few 2da files as well.

#6
Evelath

Evelath
  • Members
  • 56 messages
Just to be certain; you are saying that it is more feasible to use an override, right?

The only pitfall with overrides is that you are basically handing over your source code to players.  (Unless I am not understanding overrides properly...  Don't those have to be distributed to players, same as .haks?)

#7
_six

_six
  • Members
  • 919 messages
Oh, no no. If you're going to be distributing an empty hak to the clients, and keep all your scripts in your own copy only, then you should be able to get away with not distributing anything at all, and putting your scripts in your own override only. Override adds content directly into the entire game, without linking it to specific modules, like haks do - for scripts etc, think of it as just storing the module in a different format. Either way the players don't need a copy.

Basically anything you extract from the module into override should work server-side only. Anything that must go into a hak (like custom artwork) won't.

Modifié par _six, 26 avril 2011 - 07:32 .


#8
Evelath

Evelath
  • Members
  • 56 messages
Ahhhh, I didn't know that.  So overrides can apply directly to the server I am running as well?  

I was always under the impression that it was something player-specific that added content to their personal experience.

#9
Calvinthesneak

Calvinthesneak
  • Members
  • 656 messages
I used to do this frequently. A top hak with certain 2da files omitted from the client side hak so that people would have a more difficult time stealing my work.

At any rate differing server and client versions of same hak work fine as long as the client doesn't need to load the omitted file locally.