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 - LUniqueDan

#1
Hi guys.
I've got a nasty bug in my script, totally my fault but I can't really solve it.  (And it's going to be hard to explain the whole situation).

(deep breath)

When I call the function that "switch" characters (Basically a lot of status checking followed by .SetAsPlayer() ) if the mouse is over my makeshift inventory gui (Original Maniac Mansion /Zak style) the game crashes for "null pointer" reason.

(Yay ! I did it!)

My makeshift inventory is already under heavy brackets to avoid related "null pointer" issues :
(And most of it are managed in the standard Rep_execute function)

It won't work :
- If slot under the mouse == empty (and other "null string" issues)
- If the game is paused
- If the interface is hidden (like it's the case during the cutscenes / switches)
- If the mouse is not visible
- If there's a Communist uprising in Arizona


So... any clues of what it can be ?
How (when) is the Iventory windows populated when setAsPlayer() is called ?
Any clues of what can be the problem.
(I'll feel stupid if I call an artificial mouse position changing during switch)
 
Thanks a lot. (As again, sorry for the syntax)
#2
Will CERN awaken the Elder Gods?

Cool topic from askamathematician.com 


Abstract :
Quote
For years dark and unexplainable events have been the norm in particle accelerator laboratories around the world.  However, it was not until a meta-analysis of the 2001 “blood running up the walls incident” in Fermilab, the 1983 “unfortunate undead incident” in Daresbury, the 2011 “faster-than-light neutrino incident” at CERN, and the “howling vortex of pain effect” common to employees of KEK, that a subtle underlying pattern was uncovered.
#3
Just to notify that there's a bug with the pm system since 3 days. I was unable to removed the 1 is new. Even after I cleaned my inbox.

Cheerz.
#4
General Discussion / Sherlock is Over
Sun 01/01/2012 16:47:18
Hey you Holmesian from the UK, after 1 year of Facebook Spam, The show is back! And the guy even have a chance to get laid. (Hey! They modernize or they don't)

Show your enthousiasm please!
#5
General Discussion / XP Liberation Front.
Wed 30/11/2011 11:52:05
My computer crashed last night, and I reinstall XP Again on the main partition.
Just wondering : Am I the last one who still use and love XP?

What OS do you use the most oftenly?
#6
Weird question :

Is using a plugin, a module or Who-knows-what, is it possible to run a standard 320x200 game right in the middle of a 384x272 black box ?

#7
1 month ago when I imported a character to my game I ended up with twice the same sprite. Same number and same graphic. It (probably) erased a previous sprite on a different folder. It tooks time for me to discover it. (Until I found a guy hook to the wall instead of a key) :D Both of them had the same behavior (re-importing one, change the other etc...)

I don't remember exactly how I got rid of the issue, I probably used 2 new different sprites and the editor removed the double thing alone.

But now, I just realised that the following commands :

Code: ags

bHeadline.NormalGraphic = 585;
bHeadline.MouseOverGraphic = 586;


Set the graphic to : 285 and 286 instead. (They are (Almost) the previous ones in the same sprite FOLDER)

I carefully looked for all the possible things who can change the values (main and local script) , commented them etc... but I'm pretty sure it's the editor....

I'll try to overturn it, guessing the values... but I'm affraid it will create problems in the long run.

Thanx :(
LUniqueSadDan
#8
Yeah, I surrender. I implemented a "look at" button instead of "read" to my main gui. And I never felt myself so boringly redundant : There's a desk in the screen. Over the desk, the mouse will tell the player that this is a desk, and if the player look at the desk what I'm I suppose to say?

- "It's a desk - just open it for further info"?
- "It's a dictionnary definition of a desk
- put a joke about desk
- Make an historical background of the desk, even if it's useless for the story and kill the beat?



I know, this is a very common feature nowaday. Not to mention, a lot of recent games who have more than 1 option, feature olny 2 cursors/clicks/verbs :

Look at / Do everything else in the world

Back in time, in text adventure, this was necessary. But now? I understand that some sleuth stories need it. Or game sets in totally weird gameworld like The Dig. But is it a little superfactory ?

But here's the point : is it a little paradoxal that graphical adventure games all have "look at" feature? Mostly when it's linked to descriptive label telling what's under the mouse?

Discuss.

#9
Hi guys !

This is probably a school-case question for programmer to-be. Can someone script me a function who randomly shuffle 4 numbers (817, 818, 819, 820)
and store the result to A[0], A[1], A[2], A[3].

I can't. Really, I just can't. I was about to manually script all possible combinations but it's... kinda long... and messy... and ... you know I'm... kinda... lazy.

Thanks !
#10
What's the easiest way to randomly set positions of regions during runtime?

I'm sure I can emulate regions by

1- Randomly generating  {x1-x1+30,y1-y1-30} squares at room load 
2- Be sure it's mostly into walkable areas
3 - Then checking if the Player x,y position  in Repeatly_execute (or Rep_ex_always) is walking in those position.

But I'm lazy by nature, any insight on an easiest way to do the same effect?
Tx
Dan
#11
I'm just trying to return the Letter of an ASCII code.
Something like :
Code: ags

String MyString = ASC(65);


Can't find nothing on the Helpfiles.

help!!
#12
I feel bad to ask such kind of question but :

Is AGS dying the same way adventure games did?
(the community, the production and even maybe the engine)

1- Is Expectations and enthousiasms for higher resolutions, higher quality graphics and also voice acting make almost impossible the realisation of amateur games by a small unpaid team?
Look at : GiP Threads sorted by #of Replies
EDIT :
It's been a while since games looking like Larry Vales and Rob Blanc were produced. Is this a manifestation of this phenomenon?

2-Is the AGS population growing old? 
I understand what bring you here if you're 25. But the others? Do the younger agsers have more modern-stardard expectations? Humanly impossible to fullfill if you're not Interplay, Bethesda or Dave Gilbert. I'd like to hear you on that.

3 - How time-consuming the new editor functionalities are to scripts and maintain?
I don't know all the reasons why CJ is moving out. But let's say that it's not the good old display functions and others basics player.say who are the most time-consumming either : it's all the new 3d / sprite handlings /extenders functions and other wonderful stuff who may are useful but not mandatory in adventure games.

Discuss.
#13
A small post to let know any Kojima Fan that The Policenauts translation project is over and the english patch is released.

For people who don't know what I'm talking about it's a game by the same guy who made Snatcher.

For people who still don't know what I'm talking about, you're seriously missing the 2 bestest J-Adventure games ever released by mankind.
#14
General Discussion / Help me find that show.
Thu 06/08/2009 17:43:33
Hey guys!
(Wow, I started more thread in 3 weeks than in 3 years)

Ok, I'm looking for the name of an Sci-Fi show
*From the 70's or early 80's.
*Probably from England.  (dunno I watched it in french - can't find any clue from French-CBC archives)
*Looks a lot like the 4th dimension / twilight zones but it was sci-fi.
*Bad endings,
*Small stories up to 3 by episodes
*30  minutes broadcast.

*Known as Temps X (Time X) in french but it's not the tech Show from France with the same name.

Anyone have a clue?
#15
Hey guys!

Here's my couch potato profile :

-- Loving --
*House M.D (Nice but he's on detox until september)
*Eleventh Hour
*Penn and Teller B*S (still running, but it's olny once a week)

-- Fed up --
* Monk (became sadistic porn imao)
* Stargate SG-1 (fed up since season 2 - Still watching)
(I guess you can see a pattern here)

-- Borderline --
* Mythbuster

Anyone know something really worth watching? I mean, something that's not insulting ppl intelligence?

Please?
#16
Maniac Mansion was quite a revolution in adventure gamming... Back in time. And, to tell the thruth, MM is still my reference in game playing. (Yeah I know I'm an old fart).

I have a strange question for younger members of this forum :
I'd really wanna know :

- Have you tried Maniac Mansion? (Whatever which version)
- How did you deal with the abscence of Talk to and Look at?
- Have you enjoyed it ? Or is it too far from the actual standards?

So, if you started using a computer after the rise of The internet, gimme your answer.
#17
When exactly does the player lose it's ActiveInventory?
What exactly can make a player lose it's ActiveInventory?

I have a huge 'on mouse click' section who called RunInteractions at the end.
And somewhere between this and the character/objet/hotspot flag, the active inventory became Null.
(My script worked well for 3 years, but now I can't Use/give anymore)

Thanks in advance.

EDIT : still on 2.72 :D
#18
General Discussion / T4...
Fri 22/05/2009 04:48:50
I just get back to see T4. I guess it was ok. Probably better than the average Sci-Fi movie (but let's tell the thruth they usually s***).

But my problem is different, It's like if saw that movie 100 times before.

"The Phantom Menace of The Matrix Reloaded full of  Resident Evils" meets "Mad Max Beyond the War of the Worlds" with a touch of "Usual zombie-movies survivalist asking themselves questions about human nature. "

Anyone felt the same?
Or am I too old to watch action movies now?
#19
General Discussion / Alternative for Stickam
Mon 05/01/2009 22:28:46
 >:( Now, I'm seriously fed up.  >:(

After the last roomcrash, I tried to join 3 times in a row, end up with an htlm coded page, and now ain't no room anymore.

I know, I know, it's been 6 months that we bitch against Stickam, but now let's find an alternative.

So, anyone know any FREE vidchat site that we poor agsers can use to procrastinate instead of doing games?

Please?

Find a new home for Boyd.

Pleaaaaaaaaaaase?

Let Sylvr' / Pilf / Spacegirl get PMed by Randumbs more efficiently.

Anyone?
#20
Hey guys :
Is there a reason why a savegame-screenshot resized at 320x200 (i.e not suppose to be resized at all) appears resized anyway when set as background graphic of a 320x200 gui?

** Context : **************************************************************
-320x200, at 16bits,
-using letterbox (320x240) resolution (maybe the reason of the problem, hope not)
-Still on 2.72
************************************************************************

Code: ags

Vanessa = DynamicSprite.CreateFromSaveGame(Slot,320,200);
gUi_320x200.BackgroundGraphic = Vanessa.Graphic;
 

(I tried other values (320x201, 320x199, 320x240, 320x128 (the b/g size)) and the result is pretty the same. What I'm missing?

Is there a way to calculate the exact witdh/height  of the stored screenshots before grabbing them?
or
Is there a way to grab them with no automatic resizing?

Is the screenshots saved (EDIT: in SaveGame) have the exact same behaviors (sizes an others) than regular screenshots?
And / or,
Is there a way to access them without using DynamicSprite'Create from savegame'?
(EDIT 2 : Or did the olny way should be to overturn the problem by Saving/Loading manually Screenshots, which is not elegant?)
- Thanx
SMF spam blocked by CleanTalk