Noobie Questions...

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Noobie Questions...

Postby AgentSmyth » Mon Jun 19, 06 9:11 am

Right, I want to learn scripting (because I would already have mastered mapping, or at least most of it...) but for me to get the hang of moving away from default properties I need to understand some of the things in the script...

Code: Select all
function BeginPlay()
Solved

I see that appear quite alot...what is the BeginPlay() thing for...or is that just a default name for a function that everyone uses because it is the easiest thing to remember (i.e. JavaScript where you can make up your own functions)

Code: Select all
Super.BeginPlay();
Solved

What is the "Super." prefix for?

Also see when you add all this stuff, for example I got this from "LeatherCouch" and I notice I see one of the conditionals of JavaScript (I have to keep comparing everything to JavaScript to help me understand)

Code: Select all
switch (SkinColor)
   {
      case SC_Black:      Skin = Texture'CouchLeatherTex1'; break;
      case SC_Blue:      Skin = Texture'CouchLeatherTex1'; break;
      case SC_Brown:      Skin = Texture'CouchLeatherTex1'; break;
      case SC_LitGray:   Skin = Texture'CouchLeatherTex1'; break;
      case SC_Tan:      Skin = Texture'CouchLeatherTex1'; break;
   }


Now I understand that to a certain extent...but what I dont understand is why it gets placed in a special area (i.e. When your mapping and you bring up the properties, you notice that it comes up in "CouchLeather"....why?)

More Questions:

I never bothered learning everything in JavaScript..(i'm sorry to keep going back to it...but It's the closest thing I can relate to it) so what is the point of the boolean and where does it come into the actual thing you are setting up bolleans for?

Code: Select all
var() bool             bOneWay;            // this door can only be opened from one side
var() bool             bLocked;            // this door is locked
var() bool             bPickable;
Last edited by AgentSmyth on Mon Jun 19, 06 10:18 am, edited 1 time in total.
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Postby Dae » Mon Jun 19, 06 9:55 am

About super prefix. I hope you know object-oriented programming (with those classes).
So, for example,

Actor => Decoration => DeusExDecoration => Containers => ammocrate

Each child actor (for example, "ammocrate") inherits qualities of parent actor ("Containers"). It also inherits functions defined in parent actor.
So if we make a function in "DeusExDecoration" named, for example, foo(), we will be able to use this foo() in ammocrate too (without specifying it in "Containers" of course).
But if you need to add something in function, which is defined in parent class, you have to
a) redefine it in child class (ammocrate)
b) add in it a line like "Super.foo(var1, var2);" to perform all the stuff which has been specified in the same function foo() but in parent classes (in DeusDecoration).

By redefining functions you can do a lot of stuff, like two different effects after dropping to floor of two classes which have the same parent class (such classes are called siblings) Basketball (it bounces when you drop it) and Flowers (they're being damaged).

If you don't really understand just tell me here - i'll explain later. I'm very hurrying now so i wrote it in like 2 minutes...
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Imperial » Mon Jun 19, 06 9:56 am

I have seen Booleans before, I too want to learn scripting, coding, whatever you want to call it.
I sell donuts, if you want my donuts, give me a call.

DONUTS
User avatar
Imperial
Forum Hero
 
Posts: 2450
Joined: Thu Feb 23, 06 11:23 pm
Location: North Pole

Postby AgentSmyth » Mon Jun 19, 06 10:15 am

Ah right so BeginPlay() is a function in...DeusEx.Deco maybe...I dunno...but we are adding something to that function so we need to "Super." prefix...

Is that it?
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Postby Aidan » Mon Aug 14, 06 6:22 am

If you want to learn more abbout scripting and mapping I would suggest going to steve tacks site http://tack.planetdeusex.gamespy.com
Psychokiller, spelled incorrectly.
User avatar
Aidan
CandyMan
 
Posts: 6270
Joined: Wed Aug 02, 06 8:57 am
Location: True North Strong & Free

Postby Gishank » Mon Aug 14, 06 9:48 am

PsHyCo)(K!//3R wrote:If you want to learn more abbout scripting and mapping I would suggest going to steve tacks site http://tack.planetdeusex.gamespy.com


God damn it, look at the topic dates before posting. -.- Also PsHyCo, 500 kbs isn't really enough to run a real server.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Dae » Mon Aug 14, 06 2:22 pm

I host Inspired Russian Gathering on 512 / 512 and it isn't very bad.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby clyzm » Mon Aug 14, 06 2:26 pm

~[A]Daedalus~ wrote:I host Inspired Russian Gathering on 512 / 512 and it isn't very bad.


I'll say.

Even keeps yanks like me from having lag spikes.
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby Gishank » Mon Aug 14, 06 2:32 pm

Hmm, then why is my server so shitty :-/
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Dae » Mon Aug 14, 06 2:36 pm

Sh¤gån wrote:Hmm, then why is my server so shitty :-/

You have to have a good computer besides good connection. Also when i host i stop all useless processes like "iPodService.exe". Hit Ctrl + Shift + Esc.
And always use updated IPServer mod and never host non-dedicated servers.

+ what about connection, upload is as important, as download speed.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Gishank » Mon Aug 14, 06 2:39 pm

I can't remember my upload :P My pc is good though, the only bad thing about it, is....

Erm..
Erm...
I don't know, well i'll take that advice and close all unnessasary applications.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Dae » Mon Aug 14, 06 2:43 pm

Sh¤gån wrote:I can't remember my upload :P My pc is good though, the only bad thing about it, is....

Erm..
Erm...
I don't know, well i'll take that advice and close all unnessasary applications.

Don't close these:
- services.exe
- winlogon.exe
- svchost.exe
- point32.exe (if you use Microsoft Mouse)
- explorer.exe

I'm not sure what these are, but i neither touch them:
- mdm.exe
- ctfmon.exe
- wcescomm.exe
- nvsvc32.exe
- smss.exe
- csrss.exe
- lsass.exe
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Gishank » Mon Aug 14, 06 2:45 pm

~[A]Daedalus~ wrote:
Sh¤gån wrote:I can't remember my upload :P My pc is good though, the only bad thing about it, is....

Erm..
Erm...
I don't know, well i'll take that advice and close all unnessasary applications.

Don't close these:
- services.exe
- winlogon.exe
- svchost.exe
- point32.exe (if you use Microsoft Mouse)
- explorer.exe

I'm not sure what these are, but i neither touch them:
- mdm.exe
- ctfmon.exe
- wcescomm.exe
- nvsvc32.exe
- smss.exe
- csrss.exe
- lsass.exe


I know not to close the ones you said, the names scare me lol...
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Allan » Mon Aug 14, 06 3:09 pm

Sh¤gån wrote:
~[A]Daedalus~ wrote:
Sh¤gån wrote:I can't remember my upload :P My pc is good though, the only bad thing about it, is....

Erm..
Erm...
I don't know, well i'll take that advice and close all unnessasary applications.

Don't close these:
- services.exe
- winlogon.exe
- svchost.exe
- point32.exe (if you use Microsoft Mouse)
- explorer.exe

I'm not sure what these are, but i neither touch them:
- mdm.exe
- ctfmon.exe
- wcescomm.exe
- nvsvc32.exe
- smss.exe
- csrss.exe
- lsass.exe


I know not to close the ones you said, the names scare me lol...


Well, lets see...

lsass.exe = "IPSEC Services" - Manages IP security policy and starts the ISAKMP/Oakley (IKE) and the IP security driver.
Also is: "Net Logon" - Supports pass-through authentication of account logon events for computers in a domain.
Also is: "NT LM Security Support Provider" Provides security to remote procedure call (RPC) programs that use transports other than named pipes.
and probably a whole bunch of other networking related shizz.
Serices.exe is(among other things) a controller for UPnP(Universal Plug And Play).

That's all I could find from that list =(
User avatar
Allan
Alpha
 
Posts: 4545
Joined: Wed Dec 21, 05 1:41 pm
Location: Northamptonshire, England.

Postby Gishank » Mon Aug 14, 06 4:26 pm

Well, that worked a treat, but i got a noob saying what's [JW] i said Japanese Warlords, and he went omg your "chink", (wtf?). I went you don't have to be japanese to join, heck i'm a brit. I don't think there is even a Japanese or Chinese version of DXMP.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby DarkKnight » Mon Aug 14, 06 4:36 pm

Sh¤gån wrote:Hmm, then why is my server so shitty :-/


Iirc, you only have about 128Kb upload... one quater of Dae's...
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 2 guests