Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,079
» Latest member: seanac11
» Forum threads: 10,350
» Forum posts: 91,276

Full Statistics

Online Users
There are currently 221 online users.
» 0 Member(s) | 220 Guest(s)
Bing

Latest Threads
I'm leaving the site too....
Forum: 2DWorlds Discussion
Last Post: Jacob_
07-03-2023, 04:59 AM
» Replies: 12
» Views: 6,234
hi there.
Forum: 2DWorlds Discussion
Last Post: Jacob_
01-03-2020, 04:30 AM
» Replies: 1
» Views: 721
obroke
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 10:11 AM
» Replies: 0
» Views: 20,514
fcouldn't
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 09:02 AM
» Replies: 0
» Views: 8,223
qhow
Forum: Current Games
Last Post: PhilipShums
09-06-2017, 07:25 AM
» Replies: 0
» Views: 2,101
zstone
Forum: Current Games
Last Post: TimothyTox
09-06-2017, 07:03 AM
» Replies: 0
» Views: 969
vbit
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 03:00 AM
» Replies: 0
» Views: 947
sildenafil 100 mg sandoz
Forum: Current Games
Last Post: RichardLen
09-06-2017, 12:28 AM
» Replies: 0
» Views: 1,155
mhis
Forum: Current Games
Last Post: TimothyTox
09-05-2017, 04:09 PM
» Replies: 0
» Views: 976
sildenafil citrate 100mg ...
Forum: Current Games
Last Post: Waltertog
09-05-2017, 12:27 PM
» Replies: 0
» Views: 933

 
  More Ratings stuff
Posted by: DysLabs - 09-08-2012, 02:43 PM - Forum: Suggestions - No Replies

I think there should be a way to remove ratings.

Lets say you hit the wrong button.
You could click a "(remove rating)" and your rating would be removed.

Print this item

  Pure Lua 5.2 Script (May work in 5.1, untested)
Posted by: BrandonFireflower - 09-08-2012, 03:51 AM - Forum: Programming - Replies (12)

Hello, all! I'm new here. I decided it would benefit the community if I shared programming/scripting knowledge, and thus, this is now open source.

This is a simple OOP library I made, called weaverOOP. It's unfinished, but the basic code is here.

[lua]wO={}
wO.global={}
wO.global.clone=function(self) local cloneObj={} for i,v in pairs(self) do cloneObj[i]=v end return cloneObj end
wO.global.isA=function(self, arg)
if self.className==arg then
return true
elseif self.className~="base" then
if wO.classes[self.extends]:isA(arg) then
return true
end
else
return false
end
end
wO.global.className="base"

wO.classes={base=wO.global}

function wO.newClass(a, ...)
arg={...}
b=(arg[1] or {})
b.className=a
b.name=a.."Obj"
if #arg==2 then
b.mt={__index=wO.classes[arg[2]]}
b.extends=arg[2]
else
b.mt={__index=wO.classes["base"]}
b.extends="base"
end
b.mt.__tostring=function(a) return "Class "..a end
b.mt.__call=function(self) return wO.newObj(self.className) end
setmetatable(b, b.mt)
b.mt=nil
wO.classes[a]=b
end

function wO.newObj(a, ...)
arg={...}
local o=(arg[1] or {})
local mt={__index=wO.classes[a]}
mt.__tostring=function(a) return "Object "..o.name..", a "..o.className end
setmetatable(o, mt)
return o
end

setmetatable(_G,{__index=function(_,a) return (a=="newClass" and wO.newClass or (a=="newObj" and wO.newObj or (wO.classes[a] or nil))) end}) --Ugly piece of code.

--Example begins here.

newClass("class",{x=0,y=0})
local t=class()
print(class.x,class.y)
newClass("class2",{z=15},"class")
local t=class2()
print(t.x,t.y,t.z)
[/lua]

API for those to lazy to read my 46 line code:

wO.newClass(string className,table class,[string extends])
creates a class called "classNameHere" where it's simply that table. It'll inherit all the things from the class called extends. (With no extends argument, it uses the global class)

wO.newObj(string className,[table objectValues])
Creates an object of className, with the values of objectValues. (Defaults to {} if not supplied) (deprecated as of 0.1.2)

className([table objectValues])

Equivalent to wO.newObj("className",[table objectValues]). Make sure the metatable of _G has not been changed by another script, this will error it.

Global methods and properties:

obj:isA(string className)

Checks if object obj is or extends an object of className.

obj:clone()

Returns an exact copy of object obj.

obj.name

Specific name of an object, not of much use as of now.

obj.className

The class name of an object, used in global functions and various other items.



Attached Files
.lua   wO.lua (Size: 1.19 KB / Downloads: 14)
Print this item

  Crash in MP while doing nothing
Posted by: Qwertygiy - 09-07-2012, 12:45 AM - Forum: Bug Reports - No Replies

Code:
java.lang.NullPointerException
net.buildism.object.AbstractCharacter.step(AbstractCharacter.java:382)
net.buildism.World.step(World.java:784)
net.buildism.Game.step(Game.java:264)
net.buildism.Main.gameStep(Main.java:648)
net.buildism.MainApplet.run(MainApplet.java:235)
java.lang.Thread.run(Unknown Source)

I was the only one in the server at the time, and I didn't even have the window up front -- I was working on something else.

Print this item

  green apples or red apples or Apple Inc.
Posted by: When - 09-04-2012, 09:28 PM - Forum: Debate - Replies (4)

which one is better?


i think green apples are better because they taste good and are also better computers then anything Apple Inc. makes.

Print this item

  Player.ChildAdded script, to add stats not working
Posted by: technoguyx - 09-04-2012, 02:15 PM - Forum: Scripting - Replies (4)

I'm trying to add two IntegerValues to the (only - SP game) player's Stats object, but it doesn't seem to work unless I run the script manually with the right-click menu. I've Enabled it, and tried it under World and Players, yet nothing happens. It yields no errors.

I'd appreciate it if someone could check this and tell me if anything's wrong.

Code:
link(game.Players.ChildAdded, function(p)

if p.Type == "Player" then
   local score = create("IntegerValue")
   score.Name = "Score"

   local hiscore = create("IntegerValue")
   hiscore.Name = "Hi-Score"

   score.Parent = p.Stats
   hiscore.Parent = p.Stats --*nothing* happens after all this. Can't even see values in leaderboard.
end
    
_G.score = function(a) --attempting to use these globals tells me the script tried to reference nil, presumably due to player not being defined.
   if p.Stats.Score then
      local lescore = p.Stats.Score.Value
      local lehiscore = p.Stats["Hi-Score"].Value
      
      lescore = lescore + a
      
      if lescore > lehiscore then
         lehiscore = lescore
      end
   end
end

_G.reset = function()
   if p.Stats.Score then
      p.Stats.Score.Value = 0
   end
end
  
end)

Print this item

  Paying bits for a script teacher
Posted by: Invader - 09-04-2012, 02:15 AM - Forum: Scripting - Replies (13)

Unless you'll do it for free.
I'd like to make some games, and I've never learned how.
I'll pay a to-be-determined amount for each lesson.

Print this item

  Skin Template
Posted by: joe1joe1 - 09-03-2012, 10:00 PM - Forum: Skins - Replies (7)

making a self skin Smile

Print this item

  A bunch of Skins and Parts I made (Tuxedo+stuff)
Posted by: technoguyx - 09-03-2012, 06:10 PM - Forum: Skins - No Replies

All of them are either tuxedos or stuff that goes along well with one. Originally I wanted to create the tux for personal use, but I was feeling creative and ended up creating the rest Tongue

Tuxedo - B$5
White Tuxedo - B$5
Bow Tie - B$2
Red Bow Tie - B$3
Stereotypical Englishman - I loved how this one came out, so B$10. :3

Feedback, comments etc. appreciated. c:

Print this item

  Thinking about quitting Roblox.
Posted by: Invader - 09-03-2012, 05:57 PM - Forum: Video Games - Replies (10)

Reasons;
1. I'll never get my favorite hat.
2. Games suck, they're all laggy pieces of crap that people spent 5 minutes on.
3. sitetest3.roblox.com, the test site, will probably never be back up. I had all my favorite things on there, my Invader name, and a Buildism-like community.
4. They don't care what the users want, for example Reason 3.
5. All the new members. I made my first account back in 08, achieved a Sparkle Time Fedora, and got deleted for swearing at the new people in 2010.
After my '10 deletion I went inactive until last year, and found that Roblox had turned to crap. I decided to stay after I seen a cool new hat that came out, Rainbow Shaggy. It's been my favorite hat ever since. I also saw the ugly 2 new Dominuses. The first two, Infernus and Empyreus, were amazing though.
I'm still debating if I should quit or stay.

Print this item

  Hey, what happened to my account?!
Posted by: Scripter - 09-03-2012, 11:41 AM - Forum: The Community - Replies (6)

That certainly is a surprise, coming back to see how things are going, and my account is gone (along with a lot of other old accounts I see). Took me a while to figure out what was going on...

Um, anyways, the Wikipedia article is interesting, it's nice to see that the site didn't die. Guess I was wrong when I said I was going to stay with buildism for a long time though Tongue

There are still names that I remember here, and I also see some new names. It seems there has been a growth in members (I think). How did that happen? And what's with the three captcha's at the registering area? Haha :lol:

Print this item