Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - KAKAN

#1
Snippet Showroom / Spawn sound
Aug 25, 2017, 09:11 AM
Y'all remember the old good sound you would get while spawning in 0.3?
I wanted, and the closest I found was 369 :)
If you have the nearly appropriate sounds for any other events post it here and I'll add it gladly :)

Event name    Sound ID
Spawn369
Code for the first one( since it is the snippet showroom section ;x ):
local onPlayerSpawn = @( player ) player.PlaySound(369);Untested code and I don't expect it to work either.
#2
I compiled the client side scripts using the sq compiler posted by Stormeus.
After that, I renamed the file as main.cnut and pasted it in client side script folder( store/script )
It didn't work. Any help on how to load it?
What I've tried so far:-
  • Rename it to main.nut
  • Rename it to something else( both with .nut and .cnut extensions ) and load it from main.nut using loadfile and include
The debug_log says that its loaded, but the GUI doesn't seem to work.
#3
Client Scripting / Script::ScriptProcess
Apr 02, 2017, 09:40 AM
If I'm correct, ScriptProcess should be called 1 time in each ms. But its not.
Its getting called 100 times around every 2 secs.
I want to know how many times it gets called in one sec. I can't use time() since its not present in the client side( dunno why though, its a offcial squirrel function iirc )
#4
Bugs and Crashes / [BUG]PlaySoundForWorld
Mar 01, 2017, 08:18 AM
Subject: [Bug]PlaySoundForWorld not working as expected


Description
For ex: I play the sound at world 400, then teleport the player to world 400 and then teleport him/her to world 1. The problem is that the sound still continues to play even if the player is in world 1.

Reproducible
Always

What you were doing when the bug happened
trying to copy SAMP's spawn sound( BABA's request :D )

What you think caused the bug
Scripting skills of the devs


Take this code for ex:
player.World = 400;
PlaySoundForWorld( 400, soundID );
player.World = 1;
Here, the sound still plays even if the player is in world 1.
NOTE: My sound is 24s long, that's why I could find this bug.

I actually change the world after 2 secs, but that's not needed. For debugging my code, I added print statements to print the world. It showed 400 and 1 respectively, so, my code is fine.
#5
Snippet Showroom / JoinArray, GetTok
Feb 09, 2017, 06:20 PM
Well, I've seen many people using a inefficient method for joining arrays. By seeing the function, I got to know that the person who wrote that function has not touched the squirrel documentation. There's already a function given for joining arrays. Without anything further, here's the code, enjoy.
http://pastebin.com/fZCvE4Eg
This might not be the most efficient method, but atleast more efficient than the older function used for Joining arrays.
ex:-
local testarray = ["A","quick","brown","little","fox"];
print( JoinArray( testarray, " " ) );
OUTPUT:-
A quick brown little fox
#6
Off-Topic General / Free host
Jan 29, 2017, 04:51 PM
http://hosting.lbr-gang.com/forum/index.php
Found this. Was present in the name of a VCMP server( Brasil real RPG )
You may try it and see if they're actually giving you host :p
#7
General Discussion / Suggestion for showdebug
Dec 03, 2016, 12:46 PM
Is it possible for showdebug to show pickup and other things when they're formed and destroyed? I also want that when Spectate function is used for us, showdebug( if on ) should show that Player ID: x is spectating you.
It would really be a good help for us :)
There's a poll to vote. It would be helpful to all VCMP server developers though.
#8
I could have done that, but, unfortunately I don't have the source code.
Any ideas on that? I want VCMP's server on ARM so that I can use it with Raspberry PI or something similar to that.
@Stormeus @maxorator do you have time to compile it for ARM architecture? If so, please, do it. Thanks.
#9
Well, I was trying to download the VCMP server with its plugins, but seems like I can't access that website. Everyone is having the same problem or is it just me?
#10
I got a message like:-
announcer: Failed to read announce response from 127.0.0.1(10060)Can I get a explanation why that error poped up? And can anyone tell me the other error codes too :) ?
#11
As the topic says, is there a limit on map markers( function name: CreateMarker ), if so, how much?
#13
Off-Topic General / LOLCode
May 24, 2016, 02:14 AM
#14
Well, I'm trying to handle a HTTP GET request to a website. How can I store the output?
Something like the AJAX request to get a XML, but in my case, JSON
How to do it? Any examples would be useful :)
#15
Off-Topic General / What's your favorite...?
May 14, 2016, 08:02 AM
It's a game where one will ask What's your favorite INSERT something there?
And so on.
For ex:
KAKAN: What's your favorite fruit?
Someone: Apple. What's your favorite server?

Let me start:
What's your favorite JS library?
#16
Well, I was doing something while I discovered this.
I had about 50 pickups close to each other, and when I got over that location, I started to lag as hell.
When I used the chat, there was delay of about 8-14 seconds, even when I got 0 ping.
This doesn't happens with sphere/checkpoints, any reasons?
#17
Snippet Showroom / Simple spree system
May 09, 2016, 05:47 AM
Someone PM'ed me to give him a spree system, so I thought to create this and share it with all of yo.
Here's the code:
http://pastebin.com/7TsH8izAI haven't tested it yet, if someone can test it, it would be good for me :)
It can still be improved, but I thought to keep it as simple as I can :D
#18
Support / Squirrel source isn't updated yet
May 06, 2016, 05:40 AM
https://bitbucket.org/stormeus/0.4-squirrel/src
I had something to see in the source, download it, and compile it again with some changes. But, the squirrel plugin isn't updated yet. Hope you do it soon, @Stormeus
#19
Support / No more colors in the console
May 04, 2016, 04:04 AM
Well, previously, I got green color for MODULE, bloue for SCRIPT and all.
But now, I can't see any colors, just the code for it.
I'm using Windows 7 currently.
Before: http://i.imgur.com/IeMPtJO.png
After: http://i.imgur.com/VRFJ4aV.png
Album containing both images: http://imgur.com/a/LQyXK
#20
Off-Topic General / How many OSs do you have?
Apr 30, 2016, 06:32 AM
Well, it's a game where you need to say how many OSs do you own.
Well, I own 5. And they're:
-Windows 10 pro
-Windows 7 ultimate
-Ubuntu 14 LTS
-Ubuntu-server 14 LTS
-Raspbian

Screenshots:
http://i.imgur.com/y52MRRH.png
http://i.imgur.com/iK5BHVn.png

Note: Raspbian is not installed.
P.S:- Be honest, I hope everyone will be.