Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Addon Api Documentation website
07-17-2012, 20:45
Post: #11
RE: Addon Api Documentation website
@pieter i disabled account registration and comments.

I thought comments can be usefull... but you're rightWink
Related links
Find all posts by this user
Add Thank You Quote this message in a reply
07-17-2012, 23:08
Post: #12
RE: Addon Api Documentation website
documentations shouldnt have comments or any other interaction then explaining how shit works Smile

see it as adding a comment section to every wikipedia page Tongue

(XS4ALL/GoT2DayZ) DayZ Servers (http://got2dayz.nl)
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
http://fb.me/GoT2DayZ
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-18-2012, 15:12
Post: #13
RE: Addon Api Documentation website
Comments were activated because when i made the website, i thought about good comments on php.net, so i thought some comments can be useful...

But without comments it will be proper for sureWink
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to narkos for this post:
JariZ (07-18-2012)
07-18-2012, 18:01
Post: #14
RE: Addon Api Documentation website
The comments on php.net helped me a lot.
Altough it would be more useful if people didn't had to register to place comments
Related links

[Image: k5sVYyb.gif]
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-19-2012, 03:21
Post: #15
RE: Addon Api Documentation website
@Ich1994 did it already :/

Steam: jaydi2112
[Image: userbar7q.gif]
[Image: 45296.png]
[Image: 3OM7E.gif]
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
08-02-2012, 17:27 (This post was last modified: 09-14-2012 14:15 by zxz0O0.)
Post: #16
RE: Addon Api Documentation website
(07-15-2012 19:47)narkos Wrote:  Also what is that:
Code:
int Entity_World //Integer holding the EntityNum of 'World'
int AddonFrameInterval //Integer holding the interval of OnAddonFrame in milliseconds
Is that like global addon variables available in all the plugins?

Thx in advance for the answers!

Very good job!

Entity_World: Every entity has it's own number (ID). The last entity (2047) is the world entity. The entity which includes everything. It is needed if you for example want to display a hudelement to everyone.

AddonFrameInterval: The event OnAddonFrame is triggered by a thread in the addon. This thread has a specific interval which is currently 250ms (4FPS). However since this number could change one time in the developement I created this constant variable which holds this interval so plugin developers can use this instead of a number. For example if you want to do something every second:

CSHARP Code
  1. private int counter = 0;
  2.  
  3. public override void OnAddonFrame()
  4. {
  5. counter++;
  6. if(counter==1000/AddonFrameInterval)
  7. {
  8. counter = 0;
  9. //do your stuff here
  10. //exectued every second
  11. }
  12. }

[Image: azuw.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to zxz0O0 for this post:
narkos (08-03-2012)
08-03-2012, 19:56 (This post was last modified: 08-03-2012 20:09 by narkos.)
Post: #17
RE: Addon Api Documentation website
Thank you!

Will the next addon update have more variables like this? Is it usefull to create a new section for 'variables' as 'functions', 'events' and 'Struct/Enums' sections in the doc?
Or should i had them in 'Struct/Enums' section?

I saw in a post that you already added weaponbuilder to the next addon update? Can i get more infos yet to integrate to the doc? Wink

Thanks!
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to set up your own modded server with server addon for supernoobs JariZ 93 13,517 04-28-2013 09:27
Last Post: odok
  [Release] MW3 Server Addon zxz0O0 184 23,210 04-26-2013 12:29
Last Post: hillbilly
  Server addon & plugins pflaurie 5 408 03-19-2013 03:31
Last Post: hillbilly
  Help MW3 Addon Source Code - needs fixing! SirGravzy 10 682 02-03-2013 18:46
Last Post: SirGravzy
  Help Server Addon CPU consumption iBlacK 1 193 12-28-2012 23:09
Last Post: JariZ
Brick [Release] Updated server addon release (solid models) estebespt 53 1,487 12-10-2012 20:24
Last Post: JariZ
  [Release] Linux Fix for Server Addon zxz0O0 52 3,915 12-07-2012 18:38
Last Post: xKillerfeexDD
  Help Getting the Server Addon running on Windows Server 2008 msl 6 485 09-02-2012 18:50
Last Post: msl
  Installing the addon on TeknoGods JariZ 0 2,841 07-02-2012 18:47
Last Post: JariZ
Question Help Very important bug in the the addon [Z00MBY] Alex 81 2,854 07-01-2012 00:53
Last Post: Ich1994

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder