Invisible script bug

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Invisible script bug

Post by <LT>YosemiteSam[NL] » April 16th, 2011, 11:13 pm

Thx all ! It's working now.
I used the last script with the first wait added (without it it doesn't work).
Now I hope the server doesn't crash anymore :)

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Invisible script bug

Post by Drofder2004 » April 17th, 2011, 1:14 pm

Finally :)

To further improve on this, I personally would add some form of full screen border effect (similar to the 'pain screen') in a semi-transparent white, because currently you only have the message.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Invisible script bug

Post by <LT>YosemiteSam[NL] » April 17th, 2011, 1:22 pm

Drofder2004 wrote:Finally :)

To further improve on this, I personally would add some form of full screen border effect (similar to the 'pain screen') in a semi-transparent white, because currently you only have the message.
That would be cool, I'll see if I can make that somehow.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Invisible script bug

Post by <LT>YosemiteSam[NL] » April 19th, 2011, 7:53 pm

FYI

We ran the map 2 times for 20 minutes and it didn't crash the server so i think it's safe to say it works.
Thx guys

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Invisible script bug

Post by Rezil » April 19th, 2011, 8:26 pm

\o/
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Invisible script bug

Post by Drofder2004 » April 19th, 2011, 9:47 pm

Image
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Invisible script bug

Post by Rezil » May 1st, 2011, 12:22 am

Can you edit the colors? The dark blue for keywords(C++) looks rubbish with our current code color scheme.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

BeZZo
CJ Worshipper
CJ Worshipper
Posts: 495
Joined: June 25th, 2010, 11:23 pm
Location: Croatia

Re: Invisible script bug

Post by BeZZo » May 1st, 2011, 12:22 am

:shock: Too many colors.

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Re: Invisible script bug

Post by Pedsdude » May 1st, 2011, 2:35 am

Make font size bigger.
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Invisible script bug

Post by Drofder2004 » May 1st, 2011, 11:35 am

For CoD Script:
(Colours have NOT been done yet)

Code: Select all

$language_data = array (
    'LANG_NAME' => 'c',
    'COMMENT_SINGLE' => '//',
    'COMMENT_MULTI' => array('/*' => '*/'),
    'COMMENT_REGEXP' => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    'QUOTEMARKS' => '"',
    'ESCAPE_CHAR' => '',
    'ESCAPE_REGEXP' => '',
    'NUMBERS' =>
        GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
        GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
        GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
    'KEYWORDS' => array(
        1 => array(
            'if', 'return', 'while', 'case', 'continue', 'default', 'else', 'for', 'switch', 'break', 'wait'
            ),
        2 => array(
            'undefined', 'false', 'true', 'thread', 'waittill', 'game', 'include', 'level', 'self', 'notify', 'endon'
            ),
        3 => array(
            //AI
            'aimatpos', 'allowedstances', 'animcustom', 'animmode', 'beginprediction', 'canattackenemynode', 'cansee', 'canshoot',
            'canuseturret', 'checkgrenadelaunch', 'checkgrenadelaunchpos', 'checkgrenadethrow', 'checkgrenadethrowpos',
            'checkprone', 'clearenemy', 'clearentitytarget', 'clearfixednodesafevolume', 'cleargoalvolume', 'clearpitchorient', 'clearAllCorpses',
            'clearpotentialthreat', 'connectpaths', 'disconnectpaths', 'dropweapon', 'dumphistory', 'endprediction', 'enterprone', 'exitprone',
            'findbestcovernode', 'findcovernode', 'findreacquiredirectpath', 'findreacquirenode', 'findreacquireproximatepath',
            'firegrenadelauncher', 'flagenemyunattackable', 'getanglestolikelyenemypath', 'getcovernode', 'getfixednodesafevolume',
            'getflashbangedstrength', 'getgoalvolume', 'getgroundenttype', 'gethitenttype', 'gethityaw', 'getmotionangle', 'getnegotiationendnode',
            'getnegotiationstartnode', 'getreacquirenode', 'getturret', 'isdeflected', 'isingoal', 'isknownenemyinradius', 'isknownenemyinvolume',
            'ismovesuppressed', 'isnodeoccupied', 'ispathdirect', 'isstanceallowed', 'issuppressed', 'issuppressionwaiting', 'isturretactive',
            'lerpposition', 'makefakeai', 'maymovefrompointtopoint', 'maymovetopoint', 'melee', 'nearnode', 'orientmode', 'pickupgrenade',
            'predictanims', 'predictoriginandangles', 'pushplayer', 'reacquiremove', 'reacquirestep', 'setaimanims', 'setengagementmaxdist',
            'setengagementmindist', 'setentitytarget', 'setfixednodesafevolume', 'setflashbanged', 'setflashbangimmunity', 'setfriendlychain',
            'setgoalentity', 'setgoalentity', 'setgoalnode', 'setgoalpos', 'setgoalvolume', 'setlookat', 'setlookatanimnodes', 'setlookatyawlimits',
            'setnodepriority', 'setpotentialthreat', 'setproneanimnodes', 'setruntopos', 'settalktospecies', 'setturretanim', 'setturretnode',
            'shoot', 'shootblank', 'startcoverarrival', 'startscriptedanim', 'starttraversearrival', 'stoplookat', 'stopuseturret', 'teleport',
            'throwgrenade', 'trackscriptstate', 'traversemode', 'trimpathtoattack', 'unsetturretnode', 'updateplayersightaccuracy', 'updateprone',
            'usecovernode', 'usereacquirenode', 'useturret', 'withinapproxpathdist',
           
            //Animation
            'animhasnotetrack', 'animrelative', 'animscripted', 'clearanim', 'dumpanims', 'getangledelta', 'getanimassettype', 'getanimlength',
            'getanimtime', 'getcycleoriginoffset', 'getmovedelta', 'getnotetracktimes', 'getnumparts', 'getpartname', 'getstartangles',
            'getstartorigin', 'gettagangles', 'gettagorigin', 'setanim', 'setanimknob', 'setanimknoball', 'setanimknoballlimited',
            'setanimknoballlimitedrestart', 'setanimknoballrestart', 'setanimknoblimited', 'setanimknoblimitedrestart', 'setanimknobrestart',
            'setanimlimited', 'setanimlimitedrestart', 'setanimrestart', 'setanimtime', 'setflaggedanim', 'setflaggedanimknob',
            'setflaggedanimknoball', 'setflaggedanimknoballrestart', 'setflaggedanimknoblimited', 'setflaggedanimknoblimitedrestart',
            'setflaggedanimknobrestart', 'setflaggedanimlimited', 'setflaggedanimlimitedrestart', 'setflaggedanimrestart', 'stopanimscripted',
            'stopuseanimtree', 'useanimtree',
           
            //BadPlaces
            'badplace_arc', 'badplace_brush', 'badplace_cylinder', 'badplace_delete',
           
            //Clans
            'getclanid', 'getclanname',
           
            //Client
            'allclientsprint', 'allowspectateteam', 'announcement', 'ban', 'beginlocationselection', 'clientAnnouncement', 'clientprint',
            'cloneplayer', 'disableweapons', 'dropitem', 'enableweapons', 'endlocationselection', 'forceviewmodelanimation', 'getviewmodel',
            'isMantling', 'isOnLadder', 'isplayernumber', 'isragdoll', 'istalking', 'kick', 'makeDvarServerInfo', 'nightvisionforceoff',
            'sayAll', 'sayTeam', 'setRank', 'setSpawnWeapon', 'setteamfortrigger', 'showscoreboard', 'startragdoll', 'suicide', 'updatedmscores',
            'updatescores',
           
            //Control
            'getcommandfromkey', 'getkeybinding',
           
            //Damage
            'finishplayerdamage', 'radiusdamage', 'setcandamage', 'setplayerignoreradiusdamage',
           
            //Debug
            'addtestclient', 'assert', 'assertex', 'assertmsg', 'createprintchannel', 'getdebugeye', 'iPrintln', 'iPrintlnbold', 'line', 'print',
            'print3d', 'println', 'setdebugangles', 'setdebugorigin', 'setprintchannel',
           
            //Dvars
            'getdebugdvar', 'getdebugdvarfloat', 'getdebugdvarint', 'getdvar', 'getdvarfloat', 'getdvarint', 'setdvar', 'setsaveddvar',
           
            //Effects
            'getfxvisibility', 'loadfx', 'playfx', 'playfxontag', 'playloopedfx', 'setblur', 'setexpfog', 'spawnfx', 'triggerfx', 'visionsetnaked', 'visionsetnight',
           
            //Entity
            'addaieventlistener', 'attach', 'delete', 'detach', 'detachall', 'detonate', 'disableAimAssist', 'dodamage', 'dontInterpolate',
            'enableAimAssist', 'enablelinkto', 'entityradiusdamage', 'getattachignorecollision', 'getattachmodelname', 'getattachsize',
            'getattachtagname', 'getcentroid', 'getent', 'getentarray', 'getentbynum', 'getentitynumber', 'getentnum', 'getlightcolor',
            'getlightexponent', 'getlightfovinner', 'getlightfovouter', 'getlightintensity', 'getlightradius', 'getnormalhealth',
            'getorigin', 'getshootatpos', 'hide', 'hidepart', 'istouching', 'laseroff', 'laseron', 'launch', 'linkto', 'localtoworldcoords',
            'locklightvis', 'removeaieventlistener', 'setcontents', 'setcursorhint', 'sethintstring', 'setlightcolor', 'setlightexponent',
            'setlightfovrange', 'setlightintensity', 'setlightradius', 'setlookattext', 'setmodel', 'setnormalhealth', 'setshadowhint',
            'setstablemissile', 'show', 'showallparts', 'showpart', 'showtoplayer', 'startignoringspotlight', 'stopignoringspotlight',
            'unlink', 'unlocklightvis', 'useby', 'usetriggerrequirelookat',
           
            //File
            'closefile', 'fgetarg', 'fprintfields', 'fprintln', 'freadln', 'openfile',
           
            //HUD
            'changefontscaleovertime', 'clearalltextafterhudelem', 'cleartargetent', 'destroy', 'fadeovertime', 'moveovertime', 'newclienthudelem',
            'newhudelem', 'newteamhudelem', 'obituary', 'reset', 'scaleovertime', 'setclock', 'setclockup', 'setgametypestring', 'setmapnamestring',
            'setplayernamestring', 'setpulsefx', 'setshader', 'settargetent', 'settenthstimer', 'settenthstimerup', 'settext', 'settimer', 'settimerup',
            'setvalue', 'setwaypoint',
           
            //Level
            'changelevel', 'cinematic', 'cinematicingame', 'cinematicingameloop', 'cinematicingameloopfromfastfile', 'cinematicingameloopresident',
            'cinematicingamesync', 'clearlocalizedstrings', 'drawcompassfriendlies', 'earthquake', 'exitlevel', 'getallnodes', 'getallvehiclenodes',
            'getarraykeys', 'getbrushmodelcenter', 'getdiffuculty', 'getmapsundirection', 'getmapsunlight', 'getnode', 'getnodearray', 'getnorthyaw',
            'getnumvehicles', 'getreflectionlocs', 'getstarttime', 'gettime', 'gettimescale', 'getvehiclenode', 'getvehiclenodearray', 'iscinematicplaying',
            'issplitscreen', 'isvalidgametype', 'lerpsundirection', 'map', 'map_restart', 'mapexists', 'missionfailed', 'missionsuccess', 'resetsundirection',
            'resetsunlight', 'setclientnamemode', 'setculldist', 'setgameendtime', 'setmapcenter', 'setminimap', 'setmissiondvar', 'setsundirection',
            'setsunlight', 'settimescale', 'setvotenocount', 'setvotestring', 'setvotetime', 'setvoteyescount', 'setwinningplayer', 'setwinningteam',
            'stopcinematicingame', 'updateclientnames', 'worldentnumber',
           
            //Math
            'acos', 'asin', 'atan', 'cos', 'pointonsegmentnearesttopoint', 'randomfloat', 'randomfloatrange',
            'randomint', 'randomintrange', 'sin', 'tan', 'vectorfromlinetopoint',
           
            //Menu
            'closeingamemenu',
           
            //Missile
            'missile_createattractorent', 'missile_createattractororigin', 'missile_createrepulsorent', 'missile_createrepulsororigin', 'missile_deleteattractor',
           
            //Motion
            'devaddpitch', 'devaddroll', 'devaddyaw', 'movegravity', 'moveto', 'movex', 'movey', 'movez', 'notsolid', 'physicslaunch', 'rotatepitch', 'rotateroll',
            'rotateto', 'rotatevelocity', 'rotateyaw', 'solid', 'vibrate',
           
            //Objective
            'objective_add', 'objective_additionalcurrent', 'objective_additionalposition', 'objective_current', 'objective_delete', 'objective_icon', 'objective_onentity',
            'objective_position', 'objective_ring', 'objective_state', 'objective_string', 'objective_string_nomessage', 'objective_team', 'pingplayer', 'refreshhudammocounter',
            'refreshhudcompass', 'target_clearreticlelockon', 'target_getarray', 'target_isincircle', 'target_isinrect', 'target_istarget', 'target_remove', 'target_set',
            'target_setattackmode', 'target_setjavelinonly', 'target_setoffscreenshader', 'target_setshader', 'target_startreticlelockon',
           
            //Physics
            'physicsexplosioncylinder', 'physicsexplosionsphere', 'physicsjitter', 'physicsjolt', 'setphysicsgravitydir',
           
            //Player
            'adsbuttonpressed', 'allowads', 'allowcrouch', 'allowjump', 'allowlean', 'allowmelee', 'allowprone', 'allowsprint', 'allowstand', 'anyammoforweaponmodes',
            'attackbuttonpressed', 'buttonpressed', 'clearperks', 'closemenu', 'deactivatechannelvolumes', 'deactivateeq', 'deactivatereverb', 'disableinvulnerability',
            'disableturretdismount', 'enablehealthshield', 'enableinvulnerability', 'enableturretdismount', 'fragbuttonpressed', 'freezecontrols', 'freezecontrols',
            'getcurrentoffhand', 'getcurrentweapon', 'getcurrentweaponclipammo', 'getfractionmaxammo', 'getfractionstartammo', 'getnormalizedmovement',
            'getoffhandsecondaryclass', 'getplayerangles', 'getplayerviewheight', 'getstance', 'getvelocity', 'getweaponammoclip', 'getweaponammostock', 'getweaponslist',
            'getweaponslistprimaries', 'givemaxammo', 'givestartammo', 'giveweapon', 'hasperk', 'hasweapon', 'hideviewmodel', 'isfiring', 'islookingat', 'ismeleeing',
            'isonground', 'isthrowinggrenade', 'meleebuttonpressed', 'notifyoncommand', 'openmenu', 'openmenunomouse', 'playerads', 'playerlinkto', 'playerlinktoabsolute',
            'playerlinktodelta', 'playersetgroundreferenceent', 'playlocalsound', 'resetspreadoverride', 'secondaryoffhandbuttonpressed', 'setactionslot',
            'setautopickup', 'setchannelvolumes', 'setclientdvar', 'setclientdvars', 'setdepthoffield', 'seteq', 'seteqlerp', 'setmovespeedscale',
            'setoffhandsecondaryclass', 'setorigin', 'setperk', 'setplayerangles', 'setreverb', 'setspreadoverride', 'setstance', 'setvelocity', 'setviewmodel',
            'setviewmodeldepthoffield', 'setweaponammoclip', 'setweaponammostock', 'shellshock', 'showviewmodel', 'stoplocalsound', 'stopshellshock', 'switchtooffhand',
            'switchtoweapon', 'takeallweapons', 'takeweapon', 'unsetperk', 'uploadscore', 'uploadtime', 'usebuttonpressed', 'viewkick', 'weaponlockfinalize',
            'weaponlockfree', 'weaponlocknoclearance', 'weaponlockstart', 'weaponlocktargettooclose',
           
            //Precache
            'precacheheadicon', 'precacheitem', 'precachelocationselector', 'precachemenu', 'precachemodel', 'precachenightvisioncodeassets', 'precacherumble', 'precacheshader',
            'precacheshellshock', 'precachestatusicon', 'precachestring', 'precacheturret', 'precachevehicle', 'scr_tablelookupistring', 'tablelookup',
           
            //Rumble
            'playrumblelooponentity', 'playrumblelooponposition', 'playrumbleonentity', 'playrumbleonposition', 'stopallrumbles', 'stoprumble',
           
            //Save
            'commitsave', 'issaverecentlyloaded', 'issavesuccessful', 'savegame', 'savegamenocommit',
           
            //Sentient
            'createthreatbiasgroup', 'getaiarray', 'getaispeciesarray', 'getclosestenemysqdist', 'getenemysqdist', 'geteye', 'getthreatbias', 'getthreatbiasgroup',
            'isai', 'isalive', 'isgodmode', 'isplayer', 'issentient', 'setignoremegroup', 'setthreatbias', 'setthreatbiasagainstall', 'setthreatbiasgroup',
            'threatbiasgroupexists',
           
            //Sound
            'ambientplay', 'ambientstop', 'amplify', 'amplifystop', 'eqoff', 'eqon', 'haseq', 'iswaitingonsound', 'musicplay', 'musicstop', 'playloopsound',
            'playsound', 'playsoundasmaster', 'playsoundtoplayer', 'playsoundtoteam', 'setsoundblend', 'soundexists', 'soundfade', 'stoploopsound', 'stopsounds',
           
            //Spawn
            'canspawnturret', 'dospawn', 'getspawnerarray', 'getspawnerteamarray', 'placespawnpoint', 'positionwouldtelefrag', 'setspawnerteam', 'spawn', 'spawnstruct',
            'spawnturret', 'spawnvehicle', 'stalingradspawn',
           
            //String
            'getsubstr', 'issubstr', 'strtok', 'tolower',
           
            //System
            'logprint', 'resettimeout', 'setarchive', 'updategamerprofile', 'logString', 'isDefined', 'endGame',
           
            //Teams
            'getassignedteam', 'getteamplayersalive', 'getteamradar', 'getteamscore', 'setteamradar', 'setteamscore',
           
            //Trace
            'bullettrace', 'bullettracepassed', 'damageconetrace', 'physicstrace', 'playerphysicstrace', 'sightconetrace', 'sighttracepassed',
           
            //Trigger
            'clientclaimtrigger', 'clientreleasetrigger', 'releaseclaimedtrigger',
           
            //Turret
            'cleartargetentity', 'getturretowner', 'getturrettarget', 'isfiringturret', 'maketurretunusable', 'maketurretusable', 'restoredefaultdroppitch',
            'setaispread', 'setbottomarc', 'setconvergencetime', 'setdefaultdroppitch', 'setleftarc', 'setmode', 'setplayerspread', 'setrightarc', 'setsuppressiontime',
            'settargetentity', 'settoparc', 'setturretignoregoals', 'setturretteam', 'shootturret', 'startfiring', 'stopfiring', 'turretfiredisable', 'turretfireenable',
           
            //Variables
            'isarray', 'isdefined', 'isstring',
           
            //Vector
            'anglestoforward', 'anglestoright', 'anglestoup', 'closer', 'combineangles', 'distance', 'distance2d', 'distancesquared', 'length', 'lengthsquared',
            'vectordot', 'vectorlerp', 'vectornormalize', 'vectortoangles',
           
            //Vehicles
            'addvehicletocompass', 'attachpath', 'cleargoalyaw', 'clearlookatent', 'cleartargetyaw', 'clearturrettarget', 'fireweapon', 'freevehicle', 'getattachpos',
            'getenginevolume', 'getgoalspeedmph', 'getspeed', 'getspeedmph', 'getvehicleowner', 'getwheelsurface', 'isturretready', 'joltbody', 'makevehicleunusable',
            'makevehicleusable', 'removevehiclefromcompass', 'resumespeed', 'returnplayercontrol', 'setacceleration', 'setairresistance', 'setdeceleration',
            'setenginevolume', 'setgoalyaw', 'sethoverparams', 'setjitterparams', 'setlookatent', 'setmaxpitchroll', 'setneargoalnotifydist', 'setspeed',
            'setspeedimmediate', 'setswitchnode', 'settargetyaw', 'setturningability', 'setturrettargetent', 'setturrettargetvec', 'setvehgoalpos',
            'setvehiclelookattext', 'setvehicleteam', 'setvehweapon', 'setwaitnode', 'setwaitspeed', 'setyawspeed', 'startenginesound', 'startpath', 'stopenginesound',
            'vehforcematerialspeed',
           
            //Weapons
            'bulletspread', 'bullettracer', 'disablegrenadetouchdamage', 'enablegrenadetouchdamage', 'getammocount', 'getweaponclipmodel', 'getweaponmodel',
            'isweaponcliponly', 'isweapondetonationtimed', 'itemweaponsetammo', 'magicbullet', 'magicgrenade', 'magicgrenademanual', 'missile_settarget',
            'weaponaltweaponname', 'weaponclass', 'weaponclipsize', 'weaponfightdist', 'weaponfiretime', 'weaponinventorytype', 'weaponisboltaction', 'weaponissemiauto',
            'weaponmaxammo', 'weaponmaxdist', 'weaponstartammo', 'weapontype'           
            ),
        4 => array(
            'float', 'int', 'long', 'struct',
            ),
        ),
    'SYMBOLS' => array(
        '(', ')', '{', '}', '[', ']',
        '+', '-', '*', '/', '%',
        '=', '<', '>',
        '!', '^', '&', '|',
        '?', ':',
        ';', ','
        ),
    'CASE_SENSITIVE' => false,
    'STYLES' => array(
        'KEYWORDS' => array(
            1 => 'color: #b1b100;',
            2 => 'color: #000000; font-weight: bold;',
            3 => 'color: #000066;',
            4 => 'color: #993333;'
            ),
        'COMMENTS' => array(
            1 => 'color: #666666; font-style: italic;',
            'MULTI' => 'color: #808080; font-style: italic;'
            ),
        'ESCAPE_CHAR' =>  '',
        'BRACKETS' => array(
            0 => 'color: #009900;'
            ),
        'STRINGS' => array(
            0 => 'color: #ff0000;'
            ),
        'NUMBERS' => array(
            0 => 'color: #0000dd;',
            GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
            GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
            GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
            GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
            GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
            GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
            GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
            ),
        'METHODS' => array(
            1 => 'color: #202020;',
            2 => 'color: #202020;'
            ),
        'SYMBOLS' => array(
            0 => 'color: #339933;'
            ),
        'REGEXPS' => array(
            ),
        'SCRIPT' => array(
            ),
        ),
    'URLS' => array(
        1 => '',
        2 => '',
        3 => '',
        4 => ''
        ),
    'OOLANG' => true,
    'OBJECT_SPLITTERS' => array(
        1 => '.',
        2 => '::'
        ),
    'REGEXPS' => array(
        ),
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
    'SCRIPT_DELIMITERS' => array(
        ),
    'HIGHLIGHT_STRICT_BLOCK' => array(
        ),
    'TAB_WIDTH' => 4
);
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Invisible script bug

Post by Drofder2004 » May 1st, 2011, 1:34 pm

Testing!

Code: Select all

#include TESTING
// Comment Line
/* Comment Block */
 
main()
{
 
        self function();
        thread function();
        
        level endon("something");
        level notify("something");
        level waittill("Something");
        
        callback::function();
        
        game["variable"].array;
        
        if( x > y )
        {
                return true;
        }
        else if ((( z + x - y * a / b ) % 1) == false )
        {
                continue;
        }
        else
        {
                break;
        }
        
        int(i);
        float(b);
        
        if(!isDefined(self.variable) != undefined)
                wait 10;
                
        switch(something)
        {
                case "case":
                        break;
                case 9:
                        break;
                default:
                        iprintln("test");
        }
}
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Invisible script bug

Post by Rezil » May 1st, 2011, 3:34 pm

Awesome! A few suggestions:

- Comment lines and blocks should be colored the same. Looks better.
- Operators should be colored differently, or at least use a lighter red, this one really makes it hard to read code.

Other than that, it's pretty! :P
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Invisible script bug

Post by Drofder2004 » May 1st, 2011, 6:48 pm

Rezil wrote:Awesome! A few suggestions:

- Comment lines and blocks should be colored the same. Looks better.
- Operators should be colored differently, or at least use a lighter red, this one really makes it hard to read code.

Other than that, it's pretty! :P
Commenting lines is simply not working. Don't know why, it is a direct steal from C++ :/
And yes, the red is too bright on this dark background.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Invisible script bug

Post by <LT>YosemiteSam[NL] » May 1st, 2011, 6:50 pm

Looks very nice ! And better readable.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Invisible script bug

Post by <LT>YosemiteSam[NL] » May 1st, 2011, 9:25 pm

By the way.
I've got that invisible overlay working;
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests